Issue with RoProxy

Hello all,

I am currently trying to get all the gamepasses from a game using RoProxy. When I instruct the script to print the data nothing is printed.

local httpService = game:GetService("HttpService")

local gameID = 3846709566
local baseUrl = "https://games.roproxy.com/v1/games/%s/game-passes?limit=100&sortOrder=Asc"
local URL = baseUrl:format(gameID)

local result = httpService:GetAsync(URL)
local data = httpService:JSONDecode(result)
print(data)

Put the request into a pcall function (as it should be) and then can you let us know if the request is successful or if it causes the pcall to send an error message please so we can assist you further.

I recieved the error: “Can’t parse JSON”.

Upon inspecting the URL, I realise that it’s not even in JSON format which is why the error is happening. I can just print the result variable instead. Thanks alot for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.