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

Page stuck on environment checking indefinitely when call to get secure mode fails #536

Open
ajcasagrande opened this issue Jul 6, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ajcasagrande
Copy link
Contributor

Not a big deal, but an observation I made.

🐞 Bug Report

Affected Services [REQUIRED]

edgex-ui

Is this a regression?

Not sure

Description and Minimal Reproduction [REQUIRED]

Run ng serve, but do not run the go binary. Load localhost:4000 (or whatever you serverd it on) and the page will fail to proxy getSecureMode. You will end up with a stuck page spinning the "environment checking" indefinitely.

The UI should probably handle the error case from that call and redirect to an error page.

🔥 Exception or Error

🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:

Anything else relevant?

@ajcasagrande ajcasagrande added the bug Something isn't working label Jul 6, 2022
@badboy-huaqiao
Copy link
Member

badboy-huaqiao commented Jul 7, 2022

@ajcasagrande yeah, good catch, but that's will never happen in product environment, the development env is different from the deployment environment(or let's call it product environment), the GUI backend server must be running if you want to develop it.

  • in development environment, both ng serve and GUI backend server are required
  • in product/deployment environment, only GUI backend server is required, developers must build the angular firstly, then move the dist directory to golang static directory

see #467, I'm planning to provide some development guide

but it's also good idea if we provide a error page and redirect to it in development environment, maybe it will be used in deployment environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants