Repository navigation
feat(errors): expose Retry-After seconds on rate-limit errors - #105
Merged
Merged
Conversation
NorbixException gains RetryAfterSeconds (int?), read by HttpTransport from the answer's Retry-After header (delta seconds, or seconds until an HTTP date, never below 0; null when absent or unreadable). The constructor takes it as an optional last parameter, so existing callers compile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake handler can now add response headers. 429 with Retry-After: 37 gives 37 with CM-ERRORS-LOGGING-003 and one POST /logs; an HTTP date gives the seconds until it (a past date gives 0); no header, an unreadable header and a 500 give null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Release previewNext version on merge to semantic-release dry-run output
|
|
🎉 This PR is included in version 3.28.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
NorbixExceptiongainsRetryAfterSeconds(int?):HttpTransportreads the answer'sRetry-Afterheader (delta seconds, or the seconds until an HTTP date, never below 0;nullwhen absent or unreadable) and passes it to the exception. Additive: the constructor takes it as an optional last parameter. A 429CM-ERRORS-LOGGING-003fromWriteLogsAsyncnow tells the caller how long to wait. README Error Handling + logs row updated ("wait a minute" →RetryAfterSeconds).Tests:
dotnet test Norbix.Sdk.sln -p:NuGetAudit=false— Sdk 109/109, Hub 260/260, Coexistence 2/2 (6 new: 429 +Retry-After: 37→ 37 and one POST /logs; HTTP date; past date → 0; no header → null; unreadable → null; 500 → null).Expected release: v3.28.0 (feat → minor).
🤖 Generated with Claude Code