AleksandrRogov / DynamicsWebApi

DynamicsWebApi is a Microsoft Dataverse Web API helper library for JavaScript & TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intermittent Request Failure

memersond opened this issue · comments

I am attempting to use the API in a shared serverless environment (Azure Function App). Very rarely, a create/update request will fail giving the following error:

image

I'm not quite clear on what the error means, but I am wondering if it could have something to do with functions authenticating/running at the same time since it is a rare occurrence. Any clarity on this error would be greatly appreciated!

@memersond I don't really see all the details here. Could you log the whole error object? It should include HTTP Status, Status Message, Status Text and the Headers. Right now I only see an error message (which is very strange, I've never seen that one before) and a stack which is helpful but not quite in this situation.

Another question, does it fail in a batch request or a normal request?

I apologize, this error may have been more related to the environment I was running in. Once I found a way to avoid re-initializing the api, this stopped occurring.

All good! Thanks for letting me know. Also, feel free to re-open the ticket if you have more issues with this.