WAF Rate Limit rule
- Signal in the Vercel dashboard
- Firewall overview shows traffic matched by your custom rule
- Fix lives in
- Project, Firewall, the rule
Find out whether a Vercel 429 comes from a WAF rate limit rule or from function throttling, how to check it with curl, and how to fix each case.
A 429 on Vercel is most often your own WAF rate limit rule firing: the rule's default action returns 429 once a source passes its request limit in the time window. Open the Firewall view to see which rule matched, then raise the limit, change the key, or switch the action to Log while you tune it. Function throttling is a separate platform error.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
FUNCTION_THROTTLED, is about functions running too many invocations at once. A third source is your own code or an API it calls, since any function can return whatever status it likes.client
|
v
Vercel edge
|-- Firewall custom rule with a Rate Limit action ----> 429 (rule default)
|
v
Vercel Function
|-- concurrent execution limit exceeded -------------> FUNCTION_THROTTLED
|-- your handler passes through an upstream 429 -----> 429 from your codecurl -sS -o /dev/null -w "%{http_code}\n" https://httpbin.org/status/429
# expected output: 429If the counts show 200 up to a round number and 429 after it, you are looking at a rule with a request limit. Compare that number with the rule's Request Limit and Time Window in the Firewall settings.
for i in $(seq 1 30); do
curl -s -o /dev/null -w "%{http_code}\n" https://your-project.vercel.app/api/example
done | sort | uniq -cIn the dashboard select the project, open Firewall, then Configure, and find your rate limit rule. Creating one uses the same path: + New Rule and set its Then selector to Rate Limit.
The Time Window field defaults to 60s and Request Limit defaults to 100 requests. The limit is the maximum number of requests allowed in the window from a common source.
Choose the key(s) from the request's source. Every plan can count by IP or JA4 Digest. Counting by User Agent or an arbitrary header needs Enterprise.
The Then action can stay at Default (429) or become Log, Deny or Challenge. Log blocks nothing, so use it to watch the effect before you enforce.
Select Review Changes, then Publish. Rule changes reach production only after that.
| Resource | Hobby | Pro | Enterprise |
|---|---|---|---|
| Counting keys | IP, JA4 Digest | IP, JA4 Digest | IP, JA4 Digest, User Agent, header keys |
| Algorithm | Fixed window | Fixed window | Fixed window, Token bucket |
| Window | 10s to 10mins | 10s to 10mins | 10s to 1hr |
| Rules per project | 1 | 40 | 250 |
FUNCTION_THROTTLED happens when your functions exceed the concurrent execution limit, often from a sudden request spike or a backend API that has slowed down. Vercel also says it can occur, rarely, when its infrastructure is under abnormal load and mitigates on its own. The docs page for the code does not state an HTTP status, so identify it by the code name in your logs, not by the number.If the 429 comes from an API your function calls, the fix is in your code. A small retry with growing delay is the usual shape, and it is not specific to Vercel.
async function fetchWithBackoff(url, tries = 4) {
for (let i = 0; i < tries; i++) {
const res = await fetch(url);
if (res.status !== 429) return res;
const wait = Number(res.headers.get('retry-after')) * 1000 || 2 ** i * 500;
await new Promise((r) => setTimeout(r, wait));
}
throw new Error('Upstream still rate limiting after retries');
}429 as a signal that the server is overloaded, and 5xx and 429 responses prompt its crawlers to temporarily slow down. Indexed URLs that keep failing this way are preserved at first but eventually dropped. A rule that counts by IP can catch a crawler as readily as a scraper, so check the Firewall overview for matched traffic from crawler addresses before you leave a strict rule on public pages. See 4xx errors for finding affected URLs.3 questions people ask next, answered from the sources on this page.
Yes, when a rule you configured fires. Rate limiting is available on all plans, and a Hobby project can have one rate limit rule within its three custom firewall rules.
Counters are tracked per region and keyed by the fields you chose, such as IP. Requests from different regions or keys count separately, so some clients pass while others hit the limit.
No. A rule is something you configured and limits one source. FUNCTION_THROTTLED means functions exceeded the concurrent execution limit, which is about total simultaneous work.
Run the free audit, then approve the fixes. Every change can be undone.