HTTP Seems To Freeze the Engine Each time I press Play

Reproduction Steps

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.

Here a video showing the issue : (https://i.gyazo.com/82596b7f3ff7ff13d9b4734e8567fac6.mp4)


Workaround

Not really, Testing it really Hard now… it make my development time double.

Issue Area: Engine
Issue Type: Freezing
Impact: Critical
Frequency: Often
Date First Experienced: 2022-10-30 00:10:00 (-04:00)

1 Like

Are you sure that this is related? This error usually occurs when a BindToClose tries to stay open for >30 seconds

1 Like

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.

When I Remove the HTTP request from my game its fine, so its clearly the issue

Thanks for the report! Could you share a script or some code from the external module?

Sure

	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

Thank you! We’ve filled a ticket in our internal database.

1 Like

sorry about the late reply - are you still experiencing this issue?

No, It has been fixed thanks!
You can Close the post :slight_smile:

1 Like