ERROR:kiteconnect.ticker:Connection error: 0 - Server is shutting down ERROR:root:closed connection

Savita
Savita edited August 10 in Python client
I have Algo running on NG on python and connected on AWS EC2
i have order_update websocket working fine till 6:15PM where one of the trades properly gets logged at 5PM
suddenly at 6:15 i get this error and then none of order_update works on "COMPLETE" orders..pls help
ERROR:kiteconnect.ticker:Connection error: 0 - Server is shutting down
ERROR:root:closed connection on error: 0 Server is shutting down
ERROR:kiteconnect.ticker:Connection closed: 1000 - None
ERROR:root:closed connection on close: 1000 None

what can i do now...thanks for all the help
  • Savita
    whats the best i can do now?
  • Savita
    hi can anyone pls reply?
  • Savita
    can i put reconnect=True when i initialize kiteticker sending the apikey and token and it will reconnect?
  • rakeshr
    ERROR:kiteconnect.ticker:Connection error: 0 - Server is shutting down
    When did this happen? Can you paste here the timestamp log?
    Can i put reconnect=True when i initialize kiteticker sending the apikey and token and it will reconnect?
    Yes, it will auto reconnect in case of network failure/disconnection. Go through the WebSocket python client documentation here.
  • Savita
    this happened on 18:15:02 in Natural Gas September future series on 9th August:

    time 2024-08-09 18:15:02.483988+00:00
    ERROR:kiteconnect.ticker:Connection error: 0 - Server is shutting down
    ERROR:root:closed connection on error: 0 Server is shutting down
    ERROR:kiteconnect.ticker:Connection closed: 1000 - None
    ERROR:root:closed connection on close: 1000 None

    i have made reconnnect = True in kiteticker and removed ws.stop() from on_close() so that it can reconnect
Sign In or Register to comment.