meshery: [UI] Runtime Error in UI
Current Behavior
When the following command is run
make run-ui-dev
A server runs at localhost:3000
.
When the following is done:
- Go to
http://localhost:3000/performance/profiles
and click the icon shown in the image below
The error shown in the image below pos up:
2.Visit http://localhost:3000/smi_results
. The error in the image below will be shown:
Desired Behavior
Proper error handling should have been done and corresponding flash messages should be displayed.
Environment
- Browser: Brave
- Host OS: Zorin 15(Ubuntu-18)
- Meshery Server Version: Not sure
- Meshery Client Version: Not sure
- Platform: Didn’t configure
I just ran make run-ui-dev
as I was working with UI. Didn’t run make run-local
Contributor Guides and Resources
- 🎨 Wireframes and designs for Meshery UI in Figma
- 🖥 Contributing to Meshery UI
- 🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (12 by maintainers)
Commits related to this issue
- fix(ui): runtime-error UI - #4096 use optional chaining to avoid UI break Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com> — committed to K-Kumar-01/meshery by K-Kumar-01 3 years ago
Sure, I’ll do that.
You guys missed this 😅 This happens when meshery server is not running.
@K-Kumar-01 , most of the time, contributors won’t run ui dev server without running meshery server, but still we have to handle the errors gracefully, will you create a PR for this ?
Ideally, we should redirect the user to
/provider
when the user is not logged in which is the case here.Im working on the dev server right now, seems to work fine🤔.