Websocket connection post market hours

pawan12
Hi all today i was trying some code post market hours and my websocket code which worked during market hours keep on retrying. with below msg
"Retrying connection. Retry attempt count: 1. Next retry in around: 2 seconds"
basically when we call ws.connect()#tried both threaded and without option i expect the on_connect() method to be called but that itself is not getting called and i keep getting this retry msgs.
  • pawan12
    @rakeshr @sujith is it expected a very simple code working daily during market hours while running post market doesnt even go to on_connect function it keeps retrying
  • pawan12
    2022-12-23 19:28:10+0530 [-] Log opened.
    2022-12-23 19:28:10+0530 [-] will retry in 2 seconds
    2022-12-23 19:28:10+0530 [-] Stopping factory
    2022-12-23 19:28:13+0530 [-] Starting factory
    2022-12-23 19:28:13+0530 [-] Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
    2022-12-23 19:28:13+0530 [-] will retry in 7 seconds
    2022-12-23 19:28:13+0530 [-] Stopping factory
    2022-12-23 19:28:21+0530 [-] Starting factory
    2022-12-23 19:28:21+0530 [-] Retrying connection. Retry attempt count: 2. Next retry in around: 8 seconds
    2022-12-23 19:28:21+0530 [-] will retry in 19 seconds
    2022-12-23 19:28:21+0530 [-] Stopping factory
  • pawan12
    posted some msgs by enabling debug=true in kiteticker instant ion
  • rakeshr
    Retrying connection. Retry attempt count: 1. Next retry in around: 3 seconds
    This is because of disconnection at a network level. Make sure, there is no firewall restrictions and connecting through a stable network.
Sign In or Register to comment.