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
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
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?
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
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.