Kotak-Neo / kotak-neo-api

113 stars 105 forks source link

Keep getting error "ERROR in HSWebscoket socket is already closed." while calling Quotes API #33

Closed ratanlp closed 1 year ago

ratanlp commented 1 year ago

I keep getting errors on Quotes API call. I started getting this error from 3rd Aug, 2023 onwards.

ERROR in HSWebscoket socket is already closed. [OnError]: Function is running HSWebsocket ERROR in HSWebscoket Connection is already closed. [OnError]: Function is running HSWebsocket ERROR in HSWebscoket 'NoneType' object has no attribute 'sock' [OnError]: Function is running HSWebsocket [OnClose]: Function is running HSWebsocket None

What could be the reason?

sacbhatia commented 1 year ago

It can be because of connection or port issue. Check firewall settings. Alternatively, use on_connect and on_disconnect methods of websockets to log it and analyze.

Kotak-Neo commented 1 year ago

@ratanlp Please let us know if you are still facing the issue.