Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

execute_query_with_incremental_retry() method in client_context.py bug

Open tkohegyi opened this issue 11 months ago • 1 comments

Hi, Trying to use execute_query_with_incremental_retry() method in client_context.py - with success, however it seems it swallows all query issues silently.

Please, when ClientRequestException occurs and the reason is Microsoft.SharePoint.Client.InvalidClientQueryException - (=E400 Client Error) then don't retry, just fail the function.

In other words pls update def _try_process_if_failed to fail/exit in case status_code is 400, and don't continue.

tkohegyi avatar Jan 20 '25 17:01 tkohegyi

I suggest to add a callback parameter (I am planning to open a pull request for this)

torzsmokus avatar Jul 25 '25 08:07 torzsmokus