Navigation

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

    Getting error in websocketV2

    Python SDK
    0
    5
    106
    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.
    • N
      NaitikJyani last edited by

      line 257, in connect
      self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEAR_BEAT_INTERVAL,

      TypeError: run_forever() got an unexpected keyword argument 'ping_payload'

      M C 3 Replies Last reply Reply Quote 1
      • M
        mybharathraj @NaitikJyani last edited by

        @NaitikJyani
        Im having same problem too. Did it got solved to you?

        1 Reply Last reply Reply Quote 0
        • C
          ch.pratik @NaitikJyani last edited by

          @NaitikJyani Any solution on this?

          1 Reply Last reply Reply Quote 0
          • C
            ch.pratik @NaitikJyani last edited by

            @NaitikJyani Hi, have you found the solution to this issue?

            1 Reply Last reply Reply Quote 0
            • S
              Sady27 last edited by

              in the connect() function of smartWebSocketV2.py replace the line with below definition and it fix the issue. The highglighted in bold is the changes I did in code to make it work

              line having issue:
              self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL,
              ping_payload=self.HEART_BEAT_MESSAGE)

              replace it with below corrected code:
              self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL)

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