Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why am I getting "Http requests are not enabled" error?

Asked by 9 years ago

I have HttpEnabled set to true. I don't know why it is giving me an error.

local k
spawn(function()
k = game:GetService("HttpService"):GetAsync(url, true)
end)
repeat wait(4) until k
return k
0
I was encountering the same problem a couple days ago. For me, it was because I was trying to do it in a LocalScript. I just later used a RemoteFunction to use the HttpService and return my desired value. If this is the case for you, I suggest you do the same. nilVector 812 — 9y

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

You can only get this error when this setting is not ticked.

You also can't set that setting via script, it has to be set manually in Studio. Are you absolutely certain the setting is set before you call GetAsync?

Ad

Answer this question