Skip to content

Add automatic retry logic for retryable HTTP errors - #295

Merged
gdbarron merged 2 commits into
masterfrom
280-auto-retry-on-http-errors
Jul 18, 2026
Merged

Add automatic retry logic for retryable HTTP errors#295
gdbarron merged 2 commits into
masterfrom
280-auto-retry-on-http-errors

Conversation

@gdbarron

Copy link
Copy Markdown
Collaborator

Adds retry support to Invoke-ServiceNowRestMethod for HTTP 429, 502, 503, 504, 408, and 409 responses. Honors the Retry-After header when present, capped by a configurable maximum, otherwise falls back to a fixed wait between attempts.

New-ServiceNowSession gains RetryCount, RetryWaitSeconds, and MaxRetryAfterSeconds parameters to control this behavior per session.

Closes #280

gdbarron added 2 commits July 18, 2026 10:34
Adds retry support to Invoke-ServiceNowRestMethod for HTTP 429, 502,
503, 504, 408, and 409 responses. Honors the Retry-After header when
present, capped by a configurable maximum, otherwise falls back to a
fixed wait between attempts.

New-ServiceNowSession gains RetryCount, RetryWaitSeconds, and
MaxRetryAfterSeconds parameters to control this behavior per session.

Closes #280
@gdbarron
gdbarron merged commit fd955d1 into master Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically retry on certain HTTP status in response from ServiceNow

1 participant