Fyers API v2 issues 'Could not authenticate the user'

Getting issues in Fyers API V2, where I can’t get any details from FyersModel even after passing the token and client ids.

fyersmdelss = fyersModel.FyersModel(client_id=auth_instance.get_client_id, token=access_token, is_async=False)print()print(“Get profile:”)print(fyersmdelss.get_profile())print(“Holdings:”)print(fyersmdelss.holdings())print(“Funds:”)print(fyersmdelss.funds())

Refer to snapshot for the output logs (see that the token received through authorization flow and the one used in FyersModel are the same)

@communications_team @P5riXHjRDF can someone help here?

Hi Mihir,

Kindly share your Client ID with me in DM. I will escalate this to our API team and get it checked.

Thanks!

This is happening with everyone , Can you please ask API team to fix this ASAP.

I am also getting the same issue from , i am able to fetch fyers.profile and fyers.history , but quote and history api are giving error . My potential investors are asking for a pitch and your code broke.! Correct it asap

I am also getting the same issue from , i am able to fetch fyers.profile and fyers.history , but quote and history api are giving error . My potential investors are asking for a pitch and your code broke.! Correct it asap

I am struggling from 10 hours continously today, we are working from last 3 month and selected fyers to build auto algo !!! now this kind of issue should be escalated immidiatly, Now today i regret that i have selected fyer as plateform for auto algo !!!

issue is same it is not authenticated the user although picking up the funds an all. We wasted several days like this with our development team !!! Please support !!! We can waste another day more else, we are force to switch to another broker since it is issue with API not the custom code. API onws by fyers not us.

Called to customer care and they just hang up the call and cutted it

Can someone please check the issue? We are not able to fetch historical data and Quotes using API. It is same the issue that is mentioned by @anshul_jain and @himanshu_singh1

Same issue for fetch data api

{‘s’: ‘error’, ‘code’: -17, ‘message’: ‘Could not authenticate the user’}

Happening with me too. Please resolve

Same for me. API is not able to authenticate even after successful login

https://github.com/92Subhajit/FyersAPI/blob/main/get_auth_code.pymapquest directions i just have some idea when i read this link

@electron dash

This is interesting to read. I’m glad I came across this and had the opportunity to read it. You did an excellent job with the knowledge. I really like doing it. We appreciate you sharing this insightful knowledge with us.

Implement error handling to capture any specific error messages returned by the API. This can provide more insight into what might be going wrong @[u]strands hint[/u]