Calling: HttpService:RequestAsync(request)
yields forever when sending a GET requests in studio. POST requests are fine. It could be that it is broken on website as well for new servers…?
My packet looks like this:
--- Request
local baseURL = Authentication.API_URL
if module.LOCAL_TEST then
baseURL = module.LOCAL_TEST_URL
end
local url = baseURL .. requestName .. Functions.BuildQueryString(query)
local request: http_request_schema = {
Url = url,
Method = method,
Headers = {
["Authorization"] = Authentication.EncodeAuthenticationString(allParams),
},
}
if contentType then
request.Headers["Content-Type"] = contentType
end
if requestBody then
request.Body = requestBody
end
--- Send
local response: http_response_schema
local success, result = pcall(function()
return HttpService:RequestAsync(request)
end)
print("REACHED") -- NEVER REACHED FOR METHOD=="GET"
Nothing has changed recently. GET requests just recently started to yield forever.
If it is helpful I can private share my entire Http module. But I’m confident this isn’t an issue on my end – PS99 is running on this module and it’s been untouched for months.
Do you have any plugins enabled? They can quickly exceed the HTTP limit even if they’re just pinging localhost and after that HTTP requests will throttle.
I experienced this too and the issue was because the server never sent a response and after updating my nodejs code it worked so maybe check your nodejs code (or whatever programming language you use to make your endpoint work)
Thanks for reporting - I have been trying to reproduce this with code sample but seems I could get the data pretty soon, let us know if this is still hanging.
And I saw you posted another post for this - @Bulldo344 I will follow up on that thread with you too!