question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. python3 labgraph/examples/labgraph_monitor_example.py
  2. cd extensions/prototypes/labgraph_monitor
  3. yarn start
  4. Click on RandomMessage Node Demo demo_error2

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")

Screen Shot 2022-04-02 at 3 20 49 PM

Environment


 - LabGraph Version:
 - OS: Mac
 - Python version: Python 3.8.13

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:34 (28 by maintainers)

github_iconTop GitHub Comments

2reactions
garrettmflynncommented, Apr 14, 2022

@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.

1reaction
dtemircommented, Apr 14, 2022

Hi @dtemir It’s in the description above: - 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")

Here is the screenshot of the terminal Screen Shot 2022-04-02 at 4 42 31 PM

Just to be sure, it throws the same error described above?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found