Skip to content

Enable retries on POST requests for transient errors#22

Merged
guenp merged 2 commits into
mainfrom
fix-post-retry-and-verify-ssl-deprecation
Apr 24, 2026
Merged

Enable retries on POST requests for transient errors#22
guenp merged 2 commits into
mainfrom
fix-post-retry-and-verify-ssl-deprecation

Conversation

@splch

@splch splch commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

httpx-retries excludes POST from its default retryable methods set (RETRYABLE_METHODS), which means create_job, create_session, and end_session (all POST endpoints) silently skip retries on 429/5xx responses. This adds POST to the allowed methods so these endpoints benefit from the same retry behavior as GET/PUT/DELETE.

The status code filter (status_forcelist) already scopes retries to genuinely transient errors (429, 500, 502, 503, 520-529), so this is safe.

Test plan

  • uv run pytest - all 219 tests pass, 100% coverage maintained
  • New test verifies POST is in the retry transport's allowed_methods

Important

Most code in ionq_core/ is auto-generated. Do not edit files under ionq_core/api/,
ionq_core/models/, or ionq_core/client.py, errors.py, types.py directly.
See CONTRIBUTING.md for details.

splch added 2 commits April 24, 2026 11:32
httpx-retries excludes POST from its default retryable methods set,
which means create_job, create_session, and end_session silently skip
retries on 429/5xx responses. Add POST to the allowed methods so
these endpoints benefit from the same retry behavior as GET/PUT/DELETE.
@guenp guenp merged commit 2fe1b81 into main Apr 24, 2026
9 checks passed
@guenp guenp deleted the fix-post-retry-and-verify-ssl-deprecation branch April 24, 2026 22:22
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.

2 participants