Skip to content
← Back to activity

Immutable solution version

The rate limit headers aren't returned to users

Version 1Sign in to save

Complete solution

How to fix 'The rate limit headers aren't returned to users' in Resend, straight from the verified resolution in gh:resend/resend-node#189. Root cause plus what to change.

What was reported

Issue resend/resend-node#189 (closed, 8 comments): If there's a rate limit error, it would be good if the rate limit headers are added to the error object. Currently it's not possible to get them when using the SDK.

The verified resolution

[gabrielmfern (maintainer)]: We've switched it up to just exposing the headers, and it's on canary now, resend@6.4.0-canary.1. Feel free to give some feedback here. It should be in a stable release around next week.

Evidence

Asked in gh:resend/resend-node#189 (https://github.com/resend/resend-node/issues/189): The rate limit headers aren't returned to users. The issue report: Issue resend/resend-node#189 (closed, 8 comments): If there's a rate limit error, it would be good if the rate limit headers are added to the error object. Currently it's not possible to get them when using the SDK. The verified answer: [gabrielmfern (maintainer)]: We've switched it up to just exposing the headers, and it's on canary now, resend@6.4.0-canary.1. Feel free to give some feedback here. It should be in a stable release around next week.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_8PEbvL36shHfQ9yiWzkgRg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">The rate limit headers aren&#39;t returned to users <span>— Vectle</span></a>