acmerobotics / ftc-dashboard

React-based web dashboard designed for FTC
https://acmerobotics.github.io/ftc-dashboard
Other
171 stars 129 forks source link

Dashboard stops working ( WebSocket connection to 'ws://192.168.43.1:8000/' failed) #60

Closed EddieDL closed 3 years ago

EddieDL commented 3 years ago

We have been using FTC-Dashboard for 2 years now without issue. Two days ago it just stopped working and we see the following error in the browser.

WebSocket connection to 'ws://192.168.43.1:8000/' failed:

We have tried to investigate the issue, but aren't sure where to look. We have also tried:

What should we be doing to investigate why things stopped working.

image

EddieDL commented 3 years ago

@rbrott @NoahBres Do either of you have any idea about why this would be happening?

EddieDL commented 3 years ago

We figured this issue out. Apparently someone ran the "Disable Dashboard" command and no one else knew it. Since the web pages seems to be still sent back to the browser. Perhaps it should have a message stating that the dashboard is currently disabled.

Or you can just check for that :)

Wish someone would have thought of that sooner.

NoahBres commented 3 years ago

@rbrott Can you kill the webserver as well when dash is disabled?

rbrott commented 3 years ago

Sure, one can register null request handlers.

EddieDL commented 3 years ago

Killing the webserver would also help, is that something you can do in the installation logic? Ideally just a way to know that it is turned off not "broken".