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

[Bug]: Dashboard occasionally does not load. Favorite Tasks broken #1012

Closed
1 task done
MrOCW opened this issue Sep 26, 2024 · 6 comments · Fixed by #1013
Closed
1 task done

[Bug]: Dashboard occasionally does not load. Favorite Tasks broken #1012

MrOCW opened this issue Sep 26, 2024 · 6 comments · Fixed by #1013
Labels
bug Something isn't working

Comments

@MrOCW
Copy link

MrOCW commented Sep 26, 2024

Before proceeding, is there an existing issue or discussion for this?

OS and version

Ubuntu 24

Open-RMF installation type

Source build

Other Open-RMF installation methods

No response

Open-RMF version or commit hash

1ab38d717283aece61050874b9827d111de66b29 rmf_ros2

ROS distribution

Rolling

ROS installation type

Binaries

Other ROS installation methods

No response

Package or library, if applicable

No response

Description of the bug

Using the dashboard docker image to run. Sometimes the dashboard does not load at all. When it does, favorite tasks' Submit button is greyed out. Manually sending tasks works. The dashboard was stable with commit 89c9d7222811da5cd8711f6f8f02c050e29f72e1

Steps to reproduce the bug

Run dashboard with provided docker image

Expected behavior

No response

Actual behavior

Stable dashboard

Additional information or screenshots

No response

@MrOCW MrOCW added the bug Something isn't working label Sep 26, 2024
@aaronchongth
Copy link
Member

Hello @MrOCW! Before we dive into the issue, could you

  • Describe your setup, is the API server running on the same machine? Are you trying to access the dashboard from the same machine?
  • Can you describe what "does not load" mean? Is it a 404? Does it load forever? Can you provide logs from the browser?

For the favorite task submit button, it will only be disabled if the task type is Custom Compose. Can I confirm that is what you're trying to do?

Unless you are saying after selecting a previously saved favorite task (save a patrol task as favorite, and click on the saved task on the left, which fills out the form), and the submit button is greyed out.

  • What task is it?
  • Was there a field that is not filled out? The submit button is greyed out when the form is not fully filled out
  • As for manually sending the same task works, after selecting the favorite task, can you change some of the form values a little to see if it triggers the submit button to be usable again? This is to check if there is a bug where the favorite task is not triggering the right checks for the submit button

@MrOCW
Copy link
Author

MrOCW commented Sep 27, 2024

Hi @aaronchongth,

is the API server running on the same machine

yes. api server and dashboard is running on docker

what "does not load" mean

the screen is just white forever

it will only be disabled if the task type is Custom Compose

it is a Patrol task

image
After clicking favourite task, the form becomes like this but the button is still greyed out. I have reverted to before the commit and it is fixed

@aaronchongth
Copy link
Member

the screen is just white forever

Can you provide browser logs when this happens?

After clicking favourite task, the form becomes like this but the button is still greyed out. I have reverted to before the commit and it is fixed

The culprit is most likely https://github.com/open-rmf/rmf-web/pull/1004/files#diff-678b11fe9f77dceefe5d736a3944e36645c4702dd56ffd499318526da6cf20ceL127, can you set up the dashboard from source and try reverting this line to see if that is the fix?

@MrOCW
Copy link
Author

MrOCW commented Sep 27, 2024

Can you provide browser logs when this happens?

[Warning] [blocked] The page at https://<my domain>/robots was not allowed to run insecure content from ws://localhost:8006/. (index-CCapogoY.js, line 368)

[Warning] [blocked] The page at https://<my domain>/robots was not allowed to display insecure content from http://localhost:8000/user. (index-CCapogoY.js, line 292)

[Error] Not allowed to request resource
	(anonymous function) (index-CCapogoY.js:292:7453)
	Promise
	(anonymous function) (index-CCapogoY.js:292:5500)
	dI (index-CCapogoY.js:294:513)
[Error] XMLHttpRequest cannot load http://localhost:8000/user due to access control checks.
	(anonymous function) (index-CCapogoY.js:292:7453)
	Promise
	(anonymous function) (index-CCapogoY.js:292:5500)
	dI (index-CCapogoY.js:294:513)
[Error] Axios response error: AxiosError: Network Error
	(anonymous function) (index-CCapogoY.js:368:6429)
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'a.response.status')
	(anonymous function) (index-CCapogoY.js:372:23510)

@aaronchongth
Copy link
Member

May I check what browser are you running the dashboard on?

@aaronchongth
Copy link
Member

As for the intermittent connection, my hunch is that it is something related to your browser or setup,
A quick search pointed me to https://discussions.apple.com/thread/254087609?sortBy=rank
so far I have not been able to reproduce it

while the favorite task issue has been resolved with #1013.

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

Successfully merging a pull request may close this issue.

2 participants