Navigation

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

    unknown bio failure

    Python SDK
    3
    5
    39
    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
      Surya 1 last edited by Surya 1

      Hi @admin and team,

      I get the following error. It looks like a ssl certificate error. Any changes from your side ?

      Also heart beat is started in a separate thread inside websocket.py. when one uses threaded=True, wont heartbeat run inside main thread.. that may spawn ?

      --- <exception caught here> ---
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/twisted/internet/selectreactor.py", line 149, in _doReadOrWrite
          why = getattr(selectable, method)()
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/twisted/internet/tcp.py", line 243, in doRead
          return self._dataReceived(data)
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/twisted/internet/tcp.py", line 249, in _dataReceived
          rval = self.protocol.dataReceived(data)
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/twisted/protocols/tls.py", line 330, in dataReceived
          self._flushReceiveBIO()
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/twisted/protocols/tls.py", line 300, in _flushReceiveBIO
          self._flushSendBIO()
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/twisted/protocols/tls.py", line 252, in _flushSendBIO
          bytes = self._tlsConnection.bio_read(2 ** 15)
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/OpenSSL/SSL.py", line 1888, in bio_read
          self._handle_bio_errors(self._from_ssl, result)
        File "/Users/prabu/opt/anaconda3/lib/python3.8/site-packages/OpenSSL/SSL.py", line 1863, in _handle_bio_errors
          raise ValueError("unknown bio failure")
      builtins.ValueError: unknown bio failure
      
      HeartBeats Failed
      HeartBeats Failed
      HeartBeats Failed
      
      S 1 Reply Last reply Reply Quote 0
      • S
        Surya 1 @Surya 1 last edited by

        Alright.. I have tested without running them on threads separate threads. It went well today.

        all my troubles appear when I use

        ss.connect(threaded=True)
        
        A 1 Reply Last reply Reply Quote 0
        • A
          admin @Surya 1 last edited by

          @rajanprabu said in unknown bio failure:

          all my troubles appear when I use

          Hi @rajanprabu , Unix or Linux system doesn't have thread they have process instead. That is the reason when using threaded = true in bracket is giving error. If not used it should work

          V 1 Reply Last reply Reply Quote 0
          • V
            viswanath514 @admin last edited by

            @admin when i run just ss.connect(), i see ticks are properly coming but code after ss.connect() is not running. Any help here please?

            A 1 Reply Last reply Reply Quote 0
            • A
              admin @viswanath514 last edited by

              HI @viswanath514 We need to test this kindly mail us your piece of code at api@angelbrokig.com.

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