Giving [value error: unknown bio failure] without any error message

nikhilchawla
This error does not stop the code, how to handle this error? I am using below command with threaded = True
kws.connect(threaded = True)

Complete Error below:

Unhandled Error
Traceback (most recent call last):
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\context.py", line 85, in callWithContext
return func(*args,**kw)
--- ---
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\internet\selectreactor.py", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\internet\tcp.py", line 243, in doRead
return self._dataReceived(data)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\internet\tcp.py", line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 330, in dataReceived
self._flushReceiveBIO()
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 300, in _flushReceiveBIO
self._flushSendBIO()
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\protocols\tls.py", line 252, in _flushSendBIO
bytes = self._tlsConnection.bio_read(2 ** 15)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1870, in bio_read
self._handle_bio_errors(self._from_ssl, result)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1845, in _handle_bio_errors
raise ValueError("unknown bio failure")
builtins.ValueError: unknown bio failure

  • rakeshr
    raise ValueError("unknown bio failure")
    builtins.ValueError: unknown bio failure
    This seems to be an issue around the OpenSSL package. You can check more about the above exception here.
  • nikhilchawla
    how to handle this, please provide any solution I don't know why it is happening. Moreover, It does come after some time, not immediately.
  • rakeshr
    how to handle this, please provide any solution
    kws.connect(threaded = True)
    You have to forgo with thread ticker in Anaconda setup.
  • nikhilchawla
    I am running my code in cmd, it doesn't have any link with Anaconda I guess
    Then how should I run my code ?
    Thanks
  • rakeshr
    "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\log.py"
    As per the above log, you seem to be running inside Anaconda env. Can you deactivate conda env and then run the code once?
  • Anjan
    are you able to fix this @nikhilchawla
  • nikhilchawla
    No, if you got any solution then let me know
  • rakeshr
    As explained above, this is an issue with the Anaconda environment and is not related to the usage of Kiteconnect. Related link for a similar issue.
Sign In or Register to comment.