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:

  1. Go to http://localhost:3000/performance/profiles and click the icon shown in the image below fd23aa31-aa29-4a94-b700-26115dc7ada0

The error shown in the image below pos up: Screenshot from 2021-09-07 11-07-38

2.Visit http://localhost:3000/smi_results. The error in the image below will be shown: Screenshot from 2021-09-07 11-08-00

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Sure, I’ll do that.

I just ran make run-ui-dev as I was working with UI. Didn’t run make run-local

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🤔.