Skip to content

fix: wait for HTTP-date Retry-After headers in request retries - #5288

Merged
jxom merged 2 commits into
mainfrom
jxom/retry-after-http-date
Oct 24, 2026
Merged

jxom merged 2 commits into
mainfrom
jxom/retry-after-http-date

Conversation

@jxom

@jxom jxom commented Oct 24, 2026

Copy link
Copy Markdown
Member

Parses Retry-After headers in HTTP-date form so request retries wait until that date. Previously Number.parseInt returned NaN and the retry ran immediately. Past or invalid dates fall back to the exponential backoff.

Related: #5286

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
viem Ready Ready Preview Oct 24, 2026 4:31am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: cdac260

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T04:26:26.862560Z cdac260 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 811a1e93c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/utils/buildRequest.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/viem@5288

commit: cdac260

@jxom
jxom merged commit 75ffe81 into main Oct 24, 2026
40 checks passed
@jxom
jxom deleted the jxom/retry-after-http-date branch October 24, 2026 08:59
@github-actions github-actions Bot mentioned this pull request Oct 24, 2026

This branch was successfully deployed

1 active deployment
Preview — cdac2606 Deployed Oct 24, 2026 by vercel[bot]
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