#community-help

Rate Limit Issues for APIs on Typesense Cloud

TLDR Zildjian reports a rate limit issue but Kishore Nallan claims Typesense doesn't enforce rate limits. The issue seems associated with server-side API calls from nextjs.

Powered by Struct AI
Sep 05, 2023 (3 weeks ago)
Zildjian
Photo of md5-cbe120c5ccdca7b15a73bb4a03898b5e
Zildjian
07:54 AM
hello, we are having a rate limit issue, can we increase our rate limit to prevent this? This is not happening on our staging cluster
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:55 AM
We don't enforce a rate limit. What error are you getting?
Zildjian
Photo of md5-cbe120c5ccdca7b15a73bb4a03898b5e
Zildjian
07:56 AM
AxiosError: Request failed with status code 429
08:03
Zildjian
08:03 AM
it say's in the doc that if we need to increase the limit, we'll need to reach out to typesense support
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:04 AM
Can you please point me to the section of the docs that talk about this?
08:04
Zildjian
08:04 AM
> By default, each API Key you create can make a total of 30 requests per minute. If you need to have this limit increase, please reach out to support aT typesense dOt org.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:05 AM
Are you using the cloud management API to manage your clusters on Typesense Cloud? That limit only applies to the management API.
Zildjian
Photo of md5-cbe120c5ccdca7b15a73bb4a03898b5e
Zildjian
08:07 AM
oh, server api it is
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:23 AM
We don't enforce any rate limits on the server API. If you are using a proxy to send the requests to Typesense Cloud, please check if that's running into limits.
Zildjian
Photo of md5-cbe120c5ccdca7b15a73bb4a03898b5e
Zildjian
08:26 AM
do you have a documentation regarding that?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:28 AM
Which API call produces this error?
Zildjian
Photo of md5-cbe120c5ccdca7b15a73bb4a03898b5e
Zildjian
08:28 AM
the search api
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:28 AM
From the browser?
Zildjian
Photo of md5-cbe120c5ccdca7b15a73bb4a03898b5e
Zildjian
08:29 AM
we're using nextjs and on getStaticProps, we are calling that to build the page
08:29
Zildjian
08:29 AM
so we're calling it on the server side
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
08:30 AM
Can you please post the actual response body for the 429 error?