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
Confluence enacts a rate limit, which can be countered using the values supplied in their response headers on receiving an HTTP 429 error. This PR implements rate-limiting countermeasures by sleeping for the amount of time specified in the Retry-After header.
Technical details
Implementation approach: Evaluate HTTP 429, use values supplied by Atlassian, observe ~400 pages get created
Issue-plan progress: ?
Standards alignment: The new code adheres to PowerShell best practices and the code style found in this project
Convergence Sweep: I don't know what that means
If the retry also returns HTTP 429, execution goes straight to the error handler without waiting for that response's Retry-After value. For example, a 429 → 429 → 200 sequence aborts after the second response, so sustained throttling still interrupts bulk page creation. Use a bounded retry loop that reads the updated header on each 429 and throws when the retry budget is exhausted or a non-retryable error occurs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Confluence enacts a rate limit, which can be countered using the values supplied in their response headers on receiving an HTTP 429 error. This PR implements rate-limiting countermeasures by sleeping for the amount of time specified in the
Retry-Afterheader.Technical details
Implementation approach: Evaluate HTTP 429, use values supplied by Atlassian, observe ~400 pages get created
Issue-plan progress: ?
Standards alignment: The new code adheres to PowerShell best practices and the code style found in this project
Convergence Sweep: I don't know what that means
Relevant issues (or links)