You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Commands such as Get-GSDriveFileList calls Google APIs numerous times if the user has many files. Any of these API calls can transiently fail with 500 internal server error (http://disq.us/t/3ib2tne) or any other error. Retrying from the parent script would mean the file list needs to be from the beginning again, wasting lots of time.
Describe the bug
Commands such as Get-GSDriveFileList calls Google APIs numerous times if the user has many files. Any of these API calls can transiently fail with 500 internal server error (http://disq.us/t/3ib2tne) or any other error. Retrying from the parent script would mean the file list needs to be from the beginning again, wasting lots of time.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The loop at https://github.com/SCRT-HQ/PSGSuite/blob/main/PSGSuite/Public/Drive/Get-GSDriveFileList.ps1#L170 can be modified to include retries, especially for 5xx errors. Other error codes such as 4xx should not be retried.
A possible example can be:
The text was updated successfully, but these errors were encountered: