KV API failed: 429 Too Many Requests

For Workers & Pages, what is the name of the domain?

.

What is the error number?

429

What is the issue or error you’re encountering

KV API failed: 429 Too Many Requests

What steps have you taken to resolve the issue?

curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/storage/kv/namespaces/$NAMESPACE_ID/values/$KEY_NAME
-H “X-Auth-Key: $CLOUDFLARE_API_KEY”

What are the steps to reproduce the issue?

We are using paid plan for KV, but got a lot of 429 errors when making GET request to KV rest API in our app. Tried make request directly with curl, got same error. I haven’t found anything in the documentation regarding KV limits for paid plans. What could cause this error?

You can find the KV limits here:

For Paid, it’s listed as unlimited outside of writes that are 1 per second, but in practice, you will every now and then receive a 429 if doing operations frequently and you should retry with backoffs.

If you’re hitting KV via the REST API, note you’ll also be limited to the general API rate limits:

My operation is READ not WRITE, there is no limit.
So, it’s a bug for the rest api. Because even for the free user, the read limit is as high as 10k per day, and for paid users, obviously they can make far more read operation than that. But on the API side, the general API limit is 34.5k per day, and this limit includes all other API call, not only applies to the KV.

Typo. 100k and 345k, not 10k and 34.5k

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.