You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: