Skip to content

Takes way to long to load if it has not been linked to the backend yet #1

@cdrage

Description

@cdrage

When you first install the frontend, it takes way too long to load on first visiting the site as it's timing out trying to access the backend.

See:

frontend@0.1.0 start /project
> react-scripts start

time="2022-01-25T16:46:32Z" level=debug msg="wait program exit" program=devrun
time="2022-01-25T16:46:33Z" level=debug msg="no auth required"
SERVICE BACKEND IP ===> undefined
[HPM] Proxy created: /  -> http://undefined:8080
ℹ 「wds」: Project is running at http://10.244.0.86/
ℹ 「wds」: webpack output is served from
ℹ 「wds」: Content not from webpack is served from /project/public
ℹ 「wds」: 404s will fallback to /
Starting the development server...

Compiled with warnings.

src/App.js
  Line 1:8:  'logo' is defined but never used  no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

[HPM] Error occurred while proxying request odo.k8s.land/api/v1/todos to http://undefined:8080/ [ENOTFOUND] (https://nodejs.org/api/errors.html#errors_common_system_errors)

The timeout for trying to access port :8080 of the backend should be much quicker / 5 seconds, rather than the current 20+ seconds it takes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions