Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

WebSocket Connection Interrupted on LabGraph Monitor #69

@fzchriha

Description

@fzchriha

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions