Hello, im making a catalog tester game but im having some issues with it. On my http request script i get this error: HTTP 429 (Too Many Requests)
This is my script:
local rep = game:GetService("ReplicatedStorage")
local example = rep:FindFirstChild("item")
local event = script.loaditems
event.OnServerEvent:Connect(function(plr, text)
print("Focused")
local url = "https://catalog.rprxy.xyz/v1/search/items/details?Keyword=" .. text
local get = http:GetAsync(url)
local data = http:JSONDecode(get)
for i, v in pairs(data.data) do
local clone = example:Clone()
clone.Parent = plr.PlayerGui.catalog.main.scroll
clone.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. v.id .. "&width=420&height=420&format=png"
wait(3)
end
end)
Not fully sure why this is happening but have you actually got HTTP Requests enabled in Studio Settings? I couldn’t see any reference to it being enabled in the post. Also have you only tried testing in Studio? Not everything works in Studio so I’d try doing it outside of Studio too.
Taken from Roblox’s API Reference, other scripts could affect the number of requests sent, as this is your whole game. Or, it could be the API you’re using.
The current limitation for sending and receiving HTTP requests is 500 requests per minute. Requests over this threshold will fail. Additionally, Roblox domains are blacklisted. This means that HTTP requests cannot be sent to any Roblox owned site, such as www.roblox.com.
Make sure you are checking that the input in the TextBox is not the same as the previous request, as well as making sure someone can’t just type a whitespace and send that off as a request. These are some reasons why your remote can be getting fired to the extent where your http calls get rate limited.