How long do i have to wait in between http requests

I’m trying to make a game that keeps a server up to date on things but it keeps giving the error “HTTP 429 (Too Many Requests)” after about 28 request and i can’t find the time i have to wait between requests (it needs to be a little quick)

Given that Roblox allows you to make 500 requests per minute, your rate limits are probably coming from the server you’re contacting and not HttpService. Therefore in order for us to answer you we need more details. Rate limits can often be figured out through testing (most providers add obvious ones, like x requests per minute). Also that server/resource might have a documentation somewhere that mentions the rate limits for that specific url.

Additionally you can also attempt to solve the problem dynamically, using pcalls and checking for specifically rate limit errors, and if you see any wait for lets say a minute before attempting to redo the request(or any similar requests). Although that might come with the cost of some failed requests that could be avoided if you were fully aware of the rate limits in place.

2 Likes

For each Roblox game server, there is a limit of 500 HTTP requests per minute. Exceeding this can cause request-sending methods to stall for around 30 seconds. Your pcall() may also fail with a message of Number of requests exceeded limit.

When calling endpoints in-experience using HttpService, requests also contribute to the fixed limit of 500 HTTP requests per minute per Roblox game server. See In-experience HTTP requests for more details.

This allows for roughly ~8 requests per second, so task.wait(0.125) per request should suffice.

what is the best way for me to get a server for testing “e.g. place i can http that has no limit or a place that i can host a server” (sorry about the yap)


sorry about not responding to any thing here my school started. and i haven’t had time to set up/get a test server (for the https) or use roblox studio in general