Forum Discussion
cristinadulau
Mar 28, 2023Copper Contributor
RetryQuery not working after throttling
Hi everyone, We are using the recommended approach for throttling. Here is the method we are using to execute the requests: public void ExecuteQueryWithRetry(ClientContext ctx, int ret...
PatrikHellgren
Mar 28, 2023Copper Contributor
cristinadulau If possible you should try to use RateLimit Headers like explained here: https://github.com/OneDrive/samples/tree/master/scenarios/throttling-ratelimit-handling
If that is not possible then have a look at my answer here on using HttpClientWebRequestExecutorFactory: https://github.com/pnp/pnpframework/issues/779#issuecomment-1293277372
This is also used in the RateLimits sample above.