Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Error "sent 1011 (unexpected error) keepalive ping timeout; no close frame received", async websockets module python

    General Discussion
    0
    3
    26
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anil_patel last edited by

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

      B 1 Reply Last reply Reply Quote -1
      • B
        batman1234 @anil_patel last edited by

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

        A 1 Reply Last reply Reply Quote 0
        • A
          anil_patel @batman1234 last edited by

          @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)
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post