Add HTTP request in code and also Images in your game.
Expected Behavior
Load properly and run like the Live Game build.
Actual Behavior
50% of the time I Press play, My HTTP request Freeze and most of my UI images arent loading.
It only happen in Studio. Its fine in a Live build.
It make testing my game a Nightmare since each time I press Stop it Freeze the Engine and Post an Error.
“Not running script because past shutdown deadline”
I have to close the engine and open it back, since everything is Broken after that.
I wasn’t Experiencing that 1 week ago.
I tried reinstalling Studio and its the same thing.
Is there a way to know from what script that Deadline is happening?
Because I have couple of external Module that are using BindToClose Like ProfileStore for example
Also, the problem happen when I press play, something seems Stuck and make everything not load.
local response = HttpService:RequestAsync(
{
Url = "YourURLHere",
Method = "GET",
Headers = {
Authorization = "KeyHere"
},
}
)
-- Inspect the response table
if response.Success then
local message = HttpService:JSONDecode(response.Body)
if message.result~= nil then
return true, message.result
else
return false, "Failed to get the result with API!", 120
end
else
return false, "The request failed: "..response.StatusCode..response.StatusMessage, 60
end