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

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\", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\", line 86, in callWithContext
return{ILogContext: newCtx}, func, *args, **kw)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\", line 85, in callWithContext
return func(*args,**kw)
--- ---
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\internet\", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\internet\", line 243, in doRead
return self._dataReceived(data)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\internet\", line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\protocols\", line 330, in dataReceived
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\protocols\", line 300, in _flushReceiveBIO
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\protocols\", line 252, in _flushSendBIO
bytes = self._tlsConnection.bio_read(2 ** 15)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\OpenSSL\", line 1870, in bio_read
self._handle_bio_errors(self._from_ssl, result)
File "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\OpenSSL\", 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 ?
  • rakeshr
    "C:\Users\ACER INDIA\Anaconda3\lib\site-packages\twisted\python\"
    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.