Python fyers-apiv3 3.1.4 with python 3.12 on Windows
So there is an existing API from Create API in myapi.fyers.in, and it is working from morning.
Now, I created another API app, and got new APP-ID, Secret and created Hash. Authentication is successful, and got refresh-token plus authentication token.
Using new APP-ID, tested few http APIs and it worked. I got profile/funds info and history backfill.
But, for Websocket, If I use new APP-ID/token, I get the above error codes, if I revert to old APP-ID and credentials, the websocket connects again.
The above is reproduceable at your end, What can this issue be narrowed down to?
How does want remove an old APP-ID and move to a new one.
And there are no real logs to share and there is no meaningful logging. By switching APP-ID to new, the error appears. The python script on the other hand completely exits and a new one is started.
I am not doing any hot-reload. No other connection is also open during testing.
If I change back to the older APP-ID, socket connects normally.
**“Error: {‘code’: 12001, ‘message’: ‘Mode change failed’, ‘s’: ‘error’}” **when it’s while changing the mode between Lite mode to full mode. Can you please confirm if you were trying to change the mode as well?
Reading that error message, even i checked the same, but that was not the case. The script is the same. But changing to the new APP-ID was producing error.