Navigation

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

    Websocket Error on Closing

    Python SDK
    0
    1
    25
    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.
    • M
      mudit236 last edited by

      Error info: __on_close() takes 2 positional arguments but 4 were given

      I am receiving this error while trying to close websocket connection. I have followed the sample code at https://github.com/angel-one/smartapi-python without any changes to the close() functions.

      The connnection doesnt close and
      2022-10-04 17:17:13.857041 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': '', 'user': ', 'acctid': ''}
      HeartBeat Sending Failed

      this keeps coming (removed token user and acctid values in quote).

      @admin

      1 Reply Last reply Reply Quote 0
      • First post
        Last post