#how do i detect httpservice:postasync() failure?
1 messages · Page 1 of 1 (latest)
you could use pcall
so
local s,e =pcall(function() return httpservice:PostAsync() end) if not s then print(e) end
i tried this but it still fails sometimes
if it fails you could try to get it again
No I mean is says success but there was a error
print the error message, what is it
it is 429 i think
That means you're sending too many requests to the server at that URL. Most servers don't like having too many requests from one computer, so it limits it.
but it should still work if pcall right?
Nope.
The pcall catches the error in sending it, like the function itself doesn't return any runtime errors.
The error you received is a network error, which Roblox doesn't consider an error (as the request still reached the destination and was processed)