GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Lack of built-in retry mechanism for handling transient network errors and rate limits · Issue #20 · openapi/openapi-python-sdk Open DescriptionCurrently, the OpenAPI Python SDK is designed with low-level HTTP primitives. If an API request fails due to a transient error, the client raises an error or fails immediately:
To handle these scenarios, developers using the SDK must write custom retry loops and catch blocks in their application code, leading to unnecessary boilerplate. Proposed FeatureImplement an optional, built-in retry mechanism for both synchronous and asynchronous clients ( This retry mechanism should feature:
Proposed API DesignAdd optional retry parameters to the client constructors: client = Client( token="your_token", max_retries=3, # Number of retry attempts (0 to disable) backoff_factor=1.0, # Multiplier for exponential sleep delay retry_on_status=[429, 502, 503, 504] # Status codes that trigger a retry ) To ensure 100% backward compatibility, Benefits
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |