Been noticing this quite heavily over the past few days, and I made sure to check my servers - the servers are returning 20-30ms per request on test with Postman. On Roblox, each requests take ages and/or sometimes will fail due to Internal Server Error 500 but my server is accepting requests and is working (on the Roblox game server not on Roblox Studio)
Reproduction Min Code
local success, data = pcall(function()
return HttpService:GetAsync("https://api.orosiuslabs.com")
end)
if not success then
warn(data)
end
print(data)
Hi, thanks for the fast response! 4647863698 is the place I am experiencing it at. Let me know if you need anything else (this is not my group, but I’m lead programmer and I handle all of the scripting by the way).
I tried your reproduction steps, but it seems to work just fine for me… could it be caused by something else in your game? Did you try the reproduction steps in a different game? The error logs you posted don’t seem to be from HttpService.
Generally, HttpService requests are a bit slower than other functions because they access data outside of your experience and Roblox. I recommend benchmarking your API for any hiccups, but from my testing the response took about as long as should be expected. The only things I will however suggest you implement some sort of API authentication and access your API using Roblox’s Secret datatype, as I was able to fully access your API endpoint while testing.
The one thing that tends to make functions take a while to run in Studio for me is when the workspace is syncing to the experience. This could be the problem you were facing.
This is not suppose to be privated, it’s to ping if the server is online and functional - it serves no purpose to put it behide an API key.
Normally, you will be waiting 1-3 minutes for HttpService - I’m waiting now for 5-8 minutes on a single request. In my own testing, this seems not to be the case with my own web server.
HttpService requests should not really be taking over 10 seconds to receive a response from. When testing your own server in and out of studio it worked fine for me. Maybe it’s a problem with your internet service? Are you running any other scripts that might interfere with this one?