Skip to content

Commit c957394

Browse files
authored
Improve retry logic and add tests for server error handling (#32)
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.
1 parent 24a4354 commit c957394

File tree

3 files changed

+464
-272
lines changed

3 files changed

+464
-272
lines changed

0 commit comments

Comments
 (0)