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

Getting an error while using HttpService?

Asked by
Omarstein 100
10 years ago
local h = game:GetService("HttpService")
local url = "https://rproxy.tk/catalog/json?Subcategory=9&SortType=3&ResultsPerPage=10&PageNumber=1"
local assets = h:JSONDecode(h:GetAsync(url))
for _,v in pairs(assets) do print(v.Name) end

I'm learning how to use HttpService, but I'm getting an error whenever I try the above code.

• HttpService is enabled.

• I'm running it on a server.

Output:

20:37:27.729 - https://rproxy.tk/catalog/json?Subcategory=9&SortType=3&ResultsPerPage=10&PageNumber=1: err=0xFFFFFB4E (-1202)

20:37:27.730 - Script 'Workspace.Script', Line 3

20:37:27.730 - Stack End

0
You should just be able to print "assets" without the loop.. User#2263 0 — 10y

Answer this question