Problem with getting games players have favorited with http service

i want to make a door thats locked until you favorite the game but im having issues with finding out if a player has favorited the game or not. i want to do this using http service and not avatar editor service because i dont want to have to request to access the users inventory when they join.

local BaseUrl = "https://www.roproxy.com/users/favorites/list-json?assetTypeId=%d&itemsPerPage=%d&pageNumber=%d&userId=%d"

local function GetFavorites(player, assetTypeId, itemsPerPage, pageNumber)
	local Url = string.format(BaseUrl, assetTypeId, itemsPerPage, pageNumber, player.UserId)
	print(Url)
	local Success, Result = pcall(HttpService.GetAsync, HttpService, Url)
	if not Success then warn(Result) return end
	Success, Result = pcall(HttpService.JSONDecode, HttpService, Result)
	if not Success then warn(Result) return end
	return Result
end

this is the code im using to check but im getting an http error saying invalid redirect, any potential solutions?

This error means that the url you try to request is sending you to another url/location (a redirect) but the other url/location is invalid. Ideally you should print the exact url that causes this error (after format with parameters and such), remove the proxy part (make it roblox.com) and copypaste it in an incognito tab in your browser to see if it still gives that error. If it doesn’t, it could be the proxy, or the request headers that cause it.

when i copy paste it into my browers it says 404 page not found so do i need to find a different url to format in order to redirect it to the right place?