Initialisation {'s': 'error', 'code': -17, 'message': 'Could not authenticate the user'}

Hi i am trying to integrate the fyers api version 3. i am able to login and get the authcode but when i try to integrate web socket im getting this error.

ERROR:main:Initialization error: Failed to connect to Fyers API: {‘s’: ‘error’, ‘code’: -17, ‘message’: ‘Could not authenticate the user’}

Can someone help wh this is happening.

Hi Saroj,

Could you please confirm if the access token has been generated after obtaining the Auth code?

can u guide how to generate the access token. as i am new to python too. i am able to generate the auth code but not able to move forward

Hello Naresh. How to get Auth Code ?