fix: Azure API throttling error & incorrect page size request for workflows #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes two issues which only seem to occur in (very) large environments.
Error: map[error:map[code:InvalidTopInQueryString message:The value '2147483647' was provided for top; a value less than or equal to '1000' must be provided.]]
So changed the value to 1000, got a similar error. Changed to 999 to compensate for an off-by-one on Azure's side, but still got the same error
Error: map[error:map[code:PageSizeLimitExceeded message:The requested page size of '999' exceeds the allowed limit of '100'.]]
Setting the value to 100 fixes the issue. This is not a permanent fix, as obviously there could be more than 100 workbooks in that subscription. However, at least it collects some data for now, until there is a more permanent fix.
Results for comparison: the rolling version without this patch collects an output file of 4.2GB after this patch the output is 31GB.