Navigation

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

    ERROR: SmartWebSocketV2._on_close() takes 2 positional arguments but 4 were given

    Test
    0
    1
    2
    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.
    • S
      sb last edited by

      Why does this error occur? websocket - ERROR - error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x10c0760a0>>: _on_close() takes 2 positional arguments but 4 were given.

      sws.on_close = on_close
      def on_close(wsapp):
      logger.info(f"Connection closed: {wsapp}")

      @admin @Moderator_3

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