Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cdrage opened this issue Jan 25, 2022 · 0 comments
Open

Comments

@cdrage
Copy link

cdrage commented Jan 25, 2022

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:

[email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant