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

Help with GetAsync for httpservices help?

Asked by
Txeer 46
6 years ago

I enter in:

local http = game:GetService(“HttpService”)

local url = “https://pastebin.com/raw/vdXFHGze“

local data = http:GetAsync(url)

But it gives me an error any idea why

1 answer

Log in to vote
0
Answered by 6 years ago

I ran your code and it appears to work fine. Make sure that HttpService is enabled. This is done through Game Settings > Security > Allow HTTPs requests = true. Or by running "game:GetService("HttpService").HttpEnabled = true" in the command bar.

0
May I ask do i need to add true or false to the get async for example http:GetAsync(url, true)? Txeer 46 — 6y
Ad

Answer this question