Skip to content

no close frame received or sent #8

@Cacti2333

Description

@Cacti2333

Hello, thanks for all the work that you've done.

I'm using your script on Linux and after some time of receiving order book, I get the exception "no close frame received or sent".

Not sure why this happens and I'm not able to stop the execution to re-run the script to start over.

  • I tested it on a VPS too
  • Used try catch to print the error (which works) and leave the loop (which doesn't work)
  • Freezes after printing the error "no close frame received or sent"
try:
        loop = asyncio.new_event_loop()
        loop.run_until_complete(ASYNC_FUNCTION_NAME)
    except KeyboardInterrupt:
        print("KeyboardInterrupt")
    except Exception as error:
        print(f"CLI Exception {error=}")
    finally:
        loop.close()

With regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions