unknown bio failure


  • 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
    

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


  • @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?


  • @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


  • 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)