I got some error today morning while streaming using the python library. Its the same script which has been running fine last week. Is it just me or others have also seen
in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='kite.zerodha.com', port=443): Max retries exceeded with url: /connect/login?api_key=xxxxxxxxxxx (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))
After multiple restarts, the script is working fine now, but am afraid will it hit the error again...
First error was seen at 09:19:12am Some logs from my application Starting the process Tue Mar 14 08:55:20 IST 2017 The process ended at Tue Mar 14 09:19:12 IST 2017 Starting the process Tue Mar 14 09:19:12 IST 2017 The process ended at Tue Mar 14 09:27:01 IST 2017 Starting the process Tue Mar 14 09:27:01 IST 2017 The process ended at Tue Mar 14 09:27:02 IST 2017 Starting the process Tue Mar 14 09:27:02 IST 2017 The process ended at Tue Mar 14 09:27:03 IST 2017
Something is wrong today. Iam seeing a pattern. My sessions freeze for 20-25seconds without any ticks...then suddenly lot of ticks come within a second which i guess the Websocket is not able to handle...and it terminates. On restart...it works fine..iam seeing this freeze every 5-8mins. Not getting any exceptions during freezes...
I am facing same problem since friday. I have already raised it, connection interupting abruptly. I have implemented on_error method and it ends with error and gets closed.
@kivijoshi, @Shaj, @charuvindatre, @itsram90, We had some issue with internet connectivity at our data center. It should be fixed by now. Please check and let us know.
The last freeze that i saw was at 12:25. If you think the internet connectivity was resolved aaround that time, then i guess.. that was the root cause. Will observe it tomm again.
I tested it an hour ago and dropped at that time again. I request kite connect people to look into this issue. Its quite ugly that websocket is stopping. It can cost money.
I have a simple application which logs all the ticks to the DB. This app terminates when the connection drop. I actually launch this app from an anchor script, which will restart the application if it terminates.. just a simple loop. Basically i don't try to reconnect within the application, but instead restart the application from a script. Thats easier to implement and handle all kinds of terminations.
We are looking into this.
We had some issue with internet connectivity at our data center. It should be fixed by now.
Please check and let us know.
Thanks
Basically i don't try to reconnect within the application, but instead restart the application from a script. Thats easier to implement and handle all kinds of terminations.
You can close this thread.