Skip to content

Conversation

@thoven87
Copy link
Owner

Refines GotenbergClient's retry logic to distinguish between retryable and non-retryable server errors based on status codes and error message patterns. Adds an internal isRetryableServerError method and updates sendRequestWithRetry to use it for 500 errors. Introduces comprehensive unit tests in RetryBehaviorTests.swift to verify correct retry behavior for various error scenarios. Updates README with improved documentation and usage examples.

Refines GotenbergClient's retry logic to distinguish between retryable and non-retryable server errors based on status codes and error message patterns. Adds an internal isRetryableServerError method and updates sendRequestWithRetry to use it for 500 errors. Introduces comprehensive unit tests in RetryBehaviorTests.swift to verify correct retry behavior for various error scenarios. Updates README with improved documentation and usage examples.
@thoven87 thoven87 merged commit c957394 into main Nov 20, 2025
5 checks passed
@thoven87 thoven87 deleted the retry-fixes branch November 20, 2025 00:13
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.

1 participant