ERROR:kiteconnect.ticker:Connection error:1006-connection was closed uncleanly ((400 - BadRequest))

nabeel25a25
Yesterday I deployed a script of streaming live data on docker and due to some reason I had to terminate it, I did that using Ctrl + C, after that whenever I'm running the script again it is showing
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (400 - BadRequest))
I tried running it today, after generating a new access_token still the same error. Kindly look into this matter and resolve it at your earliest convenience.
  • salim_chisty
    You may refer to the similar discussion here.
  • nabeel25a25
    @salim_chisty But I'm using quotes.
  • salim_chisty
    Please re-check whether the parameters(API key and access token) passed are correct.
  • nabeel25a25
    The first time I ran the script, the connection was established successfully. However, there was a minor issue in the main script, so I had to terminate the process using Ctrl + C. After fixing the issue, I'm now encountering the following message every time I try to run the script again.
  • salim_chisty
    This issue occurs due to an invalid API key or access token. Please review your code and cross-verify that the correct credentials are being passed. You may refer to the similar discussion here.
Sign In or Register to comment.