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

Quickstart frontend example takes too long to load due to no linking to backend #5386

Closed
cdrage opened this issue Jan 25, 2022 · 1 comment
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/Low Nice to have issue. It's not immediately on the project roadmap to get it done.

Comments

@cdrage
Copy link
Member

cdrage commented Jan 25, 2022

/kind bug

What versions of software are you using?

Operating System: N/A

Output of odo version: N/A

How did you run odo exactly?

I did:

git clone https://github.com/odo-devfiles/odo-quickstart
cd frontend
odo create nodejs frontend
odo url create --port 3000 --host my.host.com

Actual behavior

Before we link to the backend, it's nice to check and see if the frontend component is working, so we visit the URL.

The URL however takes 20+ seconds to communicate with the backend.

This should be much much less, at say.. 5 seconds? So the user isn't endlessly waiting for the URL to load.

Expected behavior

Load less than 5 seconds

Any logs, error output, etc?

See issue here: odo-devfiles/odo-quickstart#1

Yes, see below:

 [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)
@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 25, 2022
@cdrage cdrage changed the title Quickstart guide's frontend example takes too long to load due to no linking to backend Quickstart frontend example takes too long to load due to no linking to backend Jan 25, 2022
@kadel kadel added the priority/Low Nice to have issue. It's not immediately on the project roadmap to get it done. label Jan 26, 2022
@cdrage
Copy link
Member Author

cdrage commented Feb 1, 2022

This ended up being a DNS issue with my Kubernetes cluster.. That was trying to access the public link on 10 different A records before trying to load the node.js frontend.

@cdrage cdrage closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/Low Nice to have issue. It's not immediately on the project roadmap to get it done.
Projects
None yet
Development

No branches or pull requests

2 participants