Getting Two Different Types of HTTP Errors: How to Fix?

In my game, I have the below “goal board” that encourages players to help us meet reach our goals, and in return, gives them a code to use:

It’s worked pretty well for the longest time, but every 6 months or so it experiences some pretty major errors.

The most recent issues:

When trying to get the amount of likes the game has, it will return “error getting likes: HttpError: SslConnectFail” from this code:

local function getLikes()
	local Type = "upVotes" 
	local result = 96000
	local success, err = pcall(function()
		local API = HttpService:JSONDecode(HttpService:GetAsync('https://games.robloxproxy.com/v1/games/votes?universeIds=90437549', true)); 
		local actual = API.data[1];
		result = actual[Type]
	end)
	if not success then
		warn("error getting likes: "..tostring(err))
	end
	return result
end

I have a fallback option as you can see, but having to manually update it ever so often isn’t very efficient. When I put that proxy link into my browser, it takes me to a page where it shows what I’m doing is correct:

Ever so often, with this code, it will return an HTTP 429 error:

local function getDirectGameInfo(Type:string)
	---- Type must eb the EXACT entry in the table...
	local result;
	local success, err = pcall(function()
		local API = HttpService:JSONDecode(HttpService:GetAsync('https://games.roproxy.com/v1/games?universeIds=90437549', true))
		local actual = API.data[1]
		result = actual[Type]
	end)
	if not success then
		warn("error with goal boards for finding "..Type..": "..tostring(err))
	else
		return result
	end
end

I give anything that pulls from that function a manual fallback, but again, having to manually update that is not efficient.

90 seconds after serverlaunch, I have those lines create data that is then displayed via a SurfaceGui. That SurfaceGui is then copy and pasted to about 11 different “goal boards” around the game. Every 5 minutes, it will repeat the process.

Does anyone know how to fix these issues? I made a thread back in April about similar issues, but now those solutions don’t seem to work…

most likely a problem on robloxs end of things i recon.

Does it happen in certain server regions or all?

are you also testing in game or studio?

1 Like

Testing in Studio, and then I realized the first issue I mentioned was caused by that; works absolutely fine in play mode.

The second issue with “HTTP Error 429” seems to persist though.

429 is basically a rate limit (sending too many requests)

1 Like

Per my original post,

How can I mitigate this issue?

“https://games.robloxproxy.com/v1/games/votes?universeIds=7899921237” does not seem to work anymore. I get “HttpError: TlsVerificationFail” returned when I try running it, even in online servers.

Does anyone know how to fix or an alternative?

An alternative endpoint that is used in the live Roblox website is https://www.roblox.com/games/votingservice/{placeId}. It returns a small HTML response that you need to scrap in order to fetch the likes and dislikes. Specifically you’re looking for the fields data-total-up-votes and data-total-down-votes. After you scrap the values you also need to convert them to integers / numbers.

1 Like

That endpoint DOES work, but HTTPService won’t let us run requests on ROBLOX domains… It would still need a proxy.

I have found another proxy to use instead of games.robloxproxy.com

Just change the roblox.com part with the proxy you want to use.