Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Websocket is disconnected after aprox. 60 seconds #89

@dpvro

Description

@dpvro

Hello everyone,

recently I have noticed that my websocket is not working anymore. It was working fine for 2 weeks and out of a sudden, is not working anymore.

I am adding all callbacks

websocket = websocket.WebSocketApp( url=websocket_link, on_open=on_open, on_message=on_message, on_error=on_error, on_close=on_close, on_ping=on_ping, on_pong=on_pong )

I am starting the websocket with the ping configuration which I got by calling the "bullet-public" endpoint:

` msg = {
'id': str(int(time.time() * 1000)),
'type': 'ping'
}

           websocket.run_forever(ping_interval=pingInterval,
                                              ping_timeout=pingTimeout,
                                              ping_payload=json.dumps(msg))`

I get data for 60 seconds and after that it gets disconnected.

websocket - ERROR - Connection to remote host was lost. - goodbye

and after this error message the on_error callback is called and after that the "on_close" callback is called.
For the on_error callback I get one error message: "Error: Connection to remote host was lost"

Is the handling of ping an issue or something is changed in the last days? I have tried this script of connection and getting data from websocket using other IP but same result.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions