WebSocket Connection Interrupted on LabGraph Monitor
See original GitHub issue🐛 Bug
WebSocket connection is interrupted when trying to display the real-time messages on Labgraph Monitor (frontend)
To Reproduce
Steps to reproduce the behavior:
- python3 labgraph/examples/labgraph_monitor_example.py
cd extensions/prototypes/labgraph_monitor
- yarn start
- Click on RandomMessage Node Demo
Expected behavior
After a few seconds the real-time data freezes, check the terminal where the WebSocket is running it will display the following error:
- WS_SERVER_NODE: Raised an exception: RuntimeError("Task <Task pending name='Task-162949' coro=<WSAPIServerNode.ws_server_publisher() running at /Users/fatimazahra.chriha/Desktop/mlh/spring2022/labgraph/labgraph/websockets/ws_server/ws_api_node_server.py:125>> got Future <Future pending> attached to a different loop")
Environment
- LabGraph Version:
- OS: Mac
- Python version: Python 3.8.13
Issue Analytics
- State:
- Created a year ago
- Comments:34 (28 by maintainers)
Top Results From Across the Web
Issues · facebookresearch/labgraph - GitHub
LabGraph is a Python framework for rapidly prototyping experimental systems for real-time streaming ... WebSocket Connection Interrupted on LabGraph Monitor.
Read more >Troubleshooting connection issues | Socket.IO
Problem: the socket is not able to connect. Possible explanations: You are trying to reach a plain WebSocket server; The server is not ......
Read more >Handling connection loss with websockets - Stack Overflow
I need the client's to know whether connection has been lost within ~10seconds. Client side, connection is simply: var websocket_conn = new WebSocket('ws:// ......
Read more >When a WebSocket connection is active and users refreshes ...
Refresh the page and you'll see an error being logged that states: "The connection to <WebSocket Server> was interrupted while the page was...
Read more >June 2018 - test - Fedora Mailing-Lists
... package: R-httpuv-1.4.3-2.fc29 Summary: HTTP and WebSocket Server Library ... Return control to the dispatch loop if select is interrupted by a signal....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fzchriha Happy to quickly test out the code on my Mac.
Has the
labgraph/examples/labgraph_monitor_example.py
been renamed? I’m unable to find it in the repo.Just to be sure, it throws the same error described above?