Uh oh!
There was an error while loading. Please reload this page.
feat(api): retry configuration for api block - #3329
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
The API block docs described automatic retries, but the block didn't expose any retry controls and requests were executed only once. This adds tool-level retry support with exponential backoff (including Retry-After support) for timeouts, 429s, and 5xx responses, exposes retry settings in the API block and http_request tool, and updates the docs to match. Fixes#3225
3e93b76 to
218a492CompareGreptile SummaryThis PR adds configurable retry logic to the API block, allowing users to specify retry attempts, delays, and exponential backoff for handling transient failures like timeouts, rate limits (429), and server errors (5xx). Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[API Request] --> B{Retry Config Enabled?}
B -->|No| C[Execute Request Once]
B -->|Yes| D{Method Idempotent?}
D -->|Yes| E[Execute Request]
D -->|No| F{retryNonIdempotent?}
F -->|No| C
F -->|Yes| E
E --> G{Request Successful?}
G -->|Yes| H[Return Response]
G -->|No| I{Retryable Error?}
I -->|No| J[Return Error]
I -->|Yes| K{Attempts Remaining?}
K -->|No| J
K -->|Yes| L{429 with Retry-After?}
L -->|Yes| M{Retry-After > maxDelay?}
M -->|Yes| J
M -->|No| N[Wait Retry-After]
L -->|No| O[Calculate Backoff]
N --> E
O --> P[Wait with Jitter]
P --> E
C --> Q{Success?}
Q -->|Yes| H
Q -->|No| J
Last reviewed commit: 3b1fd86 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Feb 25, 2026
waleedlatif1
commented
Feb 25, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Feb 25, 2026
@cursor review |
waleedlatif1
commented
Feb 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Feb 25, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Feb 25, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
* fix(api): add configurable request retries The API block docs described automatic retries, but the block didn't expose any retry controls and requests were executed only once. This adds tool-level retry support with exponential backoff (including Retry-After support) for timeouts, 429s, and 5xx responses, exposes retry settings in the API block and http_request tool, and updates the docs to match. Fixessimstudioai#3225 * remove unnecessary helpers, cleanup * update desc * ack comments * ack comment * ack * handle timeouts --------- Co-authored-by: Jay Prajapati <79649559+jayy-77@users.noreply.github.com>
Summary
add configurable request retries to api block
Fixes#3225
Type of Change
Testing
Tested manually
Checklist