Kite Ticker Websocket was working perfectly as expected and it was returning tick perfectly. But from today(08 July, 20222) 2pm, suddenly its not connecting further and returned the following error
WebSocket connection to 'wss://ws.kite.trade/?api_key=xxx&access_token=xxx' failed:
I have logged from error callback function and got the following...
I have also tried from .NET API client and used the following Ticker ticker = new Ticker(apiKey, accessToken, null, true, 5, 50, false, null); ticker.Connect();
It returned
{ isConnected: false }
Could you please explain if I have done anything wrong or fix the issue asap because it was running properly and I have not changed anything before getting this error.
At first ,I thought this is the error,but I couldn't understand how even the C# client is not connecting.
After reading the C# library code ,I found that
the C# client has the same default websocket url,with the extra backslash.
That's why you are getting same error in C#.
For now ,if you are still getting this error,we suggest to override the default root url with the correct one,by removing the extra backslash,as mentioned in the above thread by @rakeshr Sir.
You are using an extra backslash in the url.
Refer this thread:
https://kite.trade/forum/discussion/comment/36016/#Comment_36016
At first ,I thought this is the error,but I couldn't understand how even the C# client is not connecting.
After reading the C# library code ,I found that
the C# client has the same default websocket url,with the extra backslash.
That's why you are getting same error in C#.
https://github.com/zerodha/dotnetkiteconnect/blob/eb6304bc5c51d5cc450c3e4d00fc5227a621331a/KiteConnect/Ticker.cs#L19
For now ,if you are still getting this error,we suggest to override the default root url with the correct one,by removing the extra backslash,as mentioned in the above thread by @rakeshr Sir.
https://github.com/zerodha/dotnetkiteconnect/blob/eb6304bc5c51d5cc450c3e4d00fc5227a621331a/KiteConnect/Ticker.cs#L18
@sujith Sir, @rakeshr Sir,
I don't get one thing. If the C# client has the wrong default url,how is it working for other C# library users except @sukantary ?
Also,I overrode the root url in python client by adding the extra backslash. Still, it's connecting without any error.
Why is the wrong url as default in the C# client?
Even more important,how is the wrong url working ??
Issue has been resolved. I don't know how.... but after 1.5hrs, KiteTicker Websocket is getting connected again and ticker is working as expected.
I did not receive any exact error message.
Yes, I understand your concern as I have already told that it was working perfectly, but suddenly at 2pm it stopped working and got disconnected.