HttpService Requests are failing or extremely slow to process

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)



Thanks for reporting the issue. Can you share your place or universe ID for investigation?

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).

the place 4647863698 currently has 0 players? the corresponding universe is 1532070674 and I couldn’t find anything in our log system for it.

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.

Ah my mistake, I have it on 1 day ago on the error log (was sleeping whenever I got reported it and got confused haha sorry).

I tried it in a different place, it doesn’t give me errors but it is extremely slow to process requests.

Oh, alright - if you want me to open up a seperate bug report for these issues I’m having I can.

I’m thinking it was a one-time issue for HttpService failing, I’m not sure, any ideas?

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?

I’m running it on a seperate place and it seems to be fixed. Sorry to wait y’alls time, thanks for reminding me!

1 Like