Error "sent 1011 (unexpected error) keepalive ping timeout; no close frame received", async websockets module python
-
@admin @administrators getting error "sent 1011 (unexpected error) keepalive ping timeout; no close frame received" in async websockets python module.
error while send ping. because websockets module by default send Ping with Random Binary 4 Bytes and we have to send "ping" as ping Payload. so help me to resolve the issue.
-
@batman1234 @admin @administrators Here is the code to connect websocket
self.ws = await websockets.connect(self.ROOT_URI, extra_headers=self.header,logger=logging.getLogger("websockets.client"), ping_interval=1, compression=None) pong = await self.ws.ping("ping") print(await pong)
-
@anil_patel Please share the git repo or a specific PR in the git repo to which you are referring?
Please also mention the .py file and function that you are calling.
1 out of 3