For my game, I have a system that displays “goals” for the game, like likes and favorites.
Recently, this seems to have stopped working after months of it working.
I don’t know when exactly this happened, but it was sometime recent. Here’s the function I used for getting data:
local placeId = 190749311
local HttpService = game:GetService("HttpService")
local function getGameInfo()
local stats = {}
local success, err = pcall(function()
local API = HttpService:JSONDecode(HttpService:GetAsync('https://www.roproxy.com/places/api-get-details?assetId=' .. placeId, true))
stats = {
OnlineCount = API.OnlineCount;
VisitedCount = API.VisitedCount;
Name = API.Name;
Created = API.Created;
Updated = API.Updated;
Description = API.Description;
FavoritedCount = API.FavoritedCount;
TotalUpVotes = API.TotalUpVotes;
TotalDownVotes = API.TotalDownVotes
}
end)
if not success then
print("error with stats thingy")
warn(tostring(err))
return "error"
else
return stats
end
---return (err and warn(err)) or stats.TotalUpVotes
end
This function prints out “HttpError: InvalidRedirect”. Why? I know this uses roproxy, and I assume the link I used before has been changed, but I can’t find any reliable documentation on the internal links for roproxy.