-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi!
When I restart my python websocket server ( so the websocket connection drops ), the websocket successfully reconnects, but throws an "Invalid JSON" error in the dashboard. ( see: ).
This leads to the websocket unsubscribing from the streaming data in the frontend and my dashboard stops receiving any further data until i reload the page ( pressing refresh in grafana does not help)
What i have done so far:
I had a look at the packets with wireshark and noticed that there are no invalid JSON packets
My current workaround: As a quick fix, i modified the line "throw new Error(Invalid JSON: ${v}. Error: ${e})" to return JSON.parse{}
That solved the problem for me. Now my websocket reconnects properly when the server restarts.
Thanks!
tmorgan4
Metadata
Metadata
Assignees
Labels
No labels