Getting below mentioned error ("Can not add property api_status_code to Newtonsoft.Json.Linq.JObject. Property") frequently while calling Fyers Api's

“Can not add property api_status_code to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.”

Could you help me to understand why I am getting this? As I was not getting this error earlier. It has been started from last couple of days.

Hey @104905349304126329178 ,

Could you please DM us the code snippet used here so that we can verify it from our end

Sure Abhishek. Let me send you. You might not get the error at very first time. But when its start coming then its will coming continuously.

Please check your DM you can try it and let us know

No Luck Abhishek. Same result.

There is a problem with Api itself while sending result back.

Please Dm your contact details so that we can connect and check this

@WWhYB2qrsx It’s not working. I have tried with console app as well. It’s giving me error over there as well. And as I said earlier, this error is not at our end. It is at API side when API is sending response back to request.

Expecting valuable response this time.

Thanks in advance.

Hey @104905349304126329178, we haven’t received your client ID yet. Please share it at the earliest so our team can assist you.

@shruthi_shetty Client ID is YP23261. The App client ID is: 514dd7fd-7e41-48ee-9dbb-aab665287ea1

FYI:

I do have two fyers demat accounts and and getting above error for both. As I mentioned there is a issue with Newtonsoft library. Its throwing error while sending result to the api. Error is not at client end. ANd this is not only for specific API. This is coming for any API randomly as for almost every API response, there is a one default return parameter called ->JObject.

Thanks for providing the details, @104905349304126329178. I will communicate with the team to look into it in detail and assist you.

@shruthi_shetty I haven’t received any update or solution yet. Can you please tell at least are you folks are checking errors/issues?

Otherwise, there is no point to waste time here, better to go with another broker.

I really understand your concern, @104905349304126329178. The team is already on it, and I’ll update you once there’s a fix.

Hope your query is clarified on call , please let us know if there is any further help required

Hi Mr Suryam**, Good Day! Is the above issue got fixed? If yes, can you help me to understand the issue? I am facing the same issue when tryin to get data from fyersModel.GetStockHistory(model). **