Suddenly today 10-7-2026 websocket subscribe method started throwing object reference error. Same code was working fine yesterday. Is there any issue with websocket today?
Line - client.Subscribe(new List() { “orders” });
Error -
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=hypersynclib
StackTrace:
at HyperSyncLib.HSWebSocket.d__14.MoveNext() in HyperSyncLib\HSWebSocket.cs:line 157
This exception was originally thrown at this call stack:
HyperSyncLib.HSWebSocket.ReceiveLoop() in HSWebSocket.cs
Hi @tejas_joshi,
Please ensure you pass a valid access token in the format app_id:access_token. See the documentation for sample code, docs: API - FYERS
I am using c# web socket code, as per documentation it requires plain access token. It was working fine till yesterday with plain token.
Though as you said I tried to pass token in app_id:access_token format and got the below error
OnError------: {
“type”: “hsicn”,
“code”: -300,
“s”: “failed”,
“message”: “Error connecting to the WebSocket server: The server returned status code ‘403’ when status code ‘101’ was expected.”
}
I tried to test node.js websocket it is working fine. It seems there is some problem with c# socket. Could you please check if there were any changes in c# socket?
Same issue in Java Code, but the Python code is working, so possible an issue in their Java code path. Called Fyers support and they have asked to add appId:accessToken, but even that doesn’t work. The change without informing customers is dangerous, was planning to move brokers but now have to re-think.
Even the documentation tells the old method:
FyersClass fyersClass = FyersClass.getInstance();
fyersClass.clientId = clientID;
fyersClass.accessToken = LiveToken;
It seems something has changed from fyers side. Node and python code is working. Also till yesterday C# socket was working fine with plain token without appId:accessToken but even after adding appId its not working.
I am also facing same issue with Java code till yesterday it was working.
I have tried it running locally, no luck still getting below error
2026-10-07T11:53:39.876+05:30 ERROR 11867 — [tReadThread-113] c.tradespace.sockets.FyersSocketManager : : [FyersSocketManager] OnError: {“code”:11001,“type”:“cn”,“message”:“Authentication failed”}
the algo trading platform is down - my users are complaining about this
@NareshJanagam
@NareshJanagam Could you please fix this asap. It seems many users are stuck because of this issue.
Hi @104612236208759412208,
Understand the concern. If you are using official SDK and passing the valid token, there should not be any issue. Could you confirm, whether you have customized/modified, the SDK or using official SDK only?
Sorry for the inconvenience. Could you confirm whether you are using the official SDK or a modified/customized SDK? @tejas_joshi
I am using the official sdk, The same code base was working till yesterday - only today i got this issue.
Hi @NareshJanagam
Look at below screenshot, i have taken snippet from the fyers official documentation passed the token - run it locally still getting Authentication Error.
Could you please help me is there any alternative or fix required?
Thanks,
Raman
Fyers had sent some communication stating that live quotes wont function w/o access token. The communication furrther states that custom web socket implementation will stop working from today. But official fyers java sdk shouldnt face any issue. I’m on fyers javasdk and have been unable to get quotes today. Todays change reminded how Fyers used to be in 2021 and 2022. They rolled out changes in very adhoc manner, w/o proper communication and documentation, w/o sufficient timeline for API consumers to migrate to new version…
Hi Sachin,
Sorry for the inconvenience. Acknowledge that with official JAVA SDK there should not be any issue, we will connect and assist you further.
Hi @104612236208759412208
Thanks for being available for the call. I hope the issue is resolved.
This isn’t working with the official Java SDK either, using fyersjavasdk-1.0.jar. This code here, copied from your documentation is failing to authenticate
@NareshJanagam
Thanks Naresh providing quick alternative fix - I would be happy if the inconsistency also addressed. thanks a lot for your prompt response.
Thanks @NareshJanagam for sharing temporary fix. I hope it will permanently fixed by tomorrow. Could you please update us once permanent fix is added.
Naresh, thanks for the call. I set fyersClass.access with the access token that functions correctly for trading API, but issue is not resolved. Hope there’s no change in the format of access token for live feed.