on_close() error in websocket connection

RP3436
Please look into the following error messages which stopped my script from running. This happened twice today morning , only second instance is being reported here. What does this error mean and whether I need to take any special care to avoid occurrence of this type of error? I am using redis as message broker and celery as task manager. Main thread is not blocked. Only 3 instruments were subscribed.
Error message:
2018-02-02 11:22:10,969 - websocket - ERROR - error from callback >: on_close() takes 0 positional arguments but 1 was given
File "C:\Users\---------\Anaconda3\lib\site-packages\websocket\_app.py", line 269, in _callback
callback(self, *args)
File "C:\Users\-----------\Anaconda3\lib\site-packages\kiteconnect\__init__.py", line 1115, in _on_close
self.on_close(self)
  • sujith
    Hi,
    It seems like onclose takes a ws as argument. Check out this for reference.

    If you are implementing now, don't use this. The version 1 APIs are being deprecated. Use latest Kite Connect 3 APIs from kite3 branch of the same repository.
Sign In or Register to comment.