Navigation

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

    websocket failed to connect, seeing errors

    Python SDK
    0
    2
    41
    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.
    • K
      Karthikeyan last edited by

      I tried to connect the websocket, but seeing errors

      (Pdb) >? ss.connect()
      Error info: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
      socker error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
      Error info: SmartWebSocket.__on_close() takes 2 positional arguments but 4 were given
      socker error SmartWebSocket.__on_close() takes 2 positional arguments but 4 were given

      (Pdb) >? ss.connect()
      __on_open################
      on open
      subscribing - nse_cm|26000&nse_cm|26009
      Ticks: [{'ak': 'nk', 'msg': 'cn', 'task': 'cn'}]
      2022-11-15 13:05:54.326055 : Start task in the background
      Ticks: [{'ak': 'nk', 'msg': 'mw', 'task': 'mw'}]
      Ticks: [{'ak': 'nk', 'msg': 'hb', 'task': 'hb'}]

      punit 1 Reply Last reply Reply Quote 0
      • punit
        punit @Karthikeyan last edited by

        @Karthikeyan Need to migrate to V2 if not already.

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