Https error 404 [HELP ASAP PLEASE!]

I would like to be able to display how many Likes/Dislikes on a game without “https error 404”


After about 4 hours of searching the devforum, I have not found a solution to “https error 404” related to my problem. When I use the “api.roproxy.com” as a proxy, and I try to fetch the universal ID (shown in the screenshot below), I receive the error “https error 404”

i have tried changing the game id/using another proxy/re writing my script.

ANY AND ALL REPLY ARE GREATLY APPRECIATED AS I AM NEW TO USING API

I TRIED USING A SRIPT FROM A DEVFORUM POST TO SEE IF ANYTHING WOULD CHANGE.

1 Like

i am new to using api so i kindly ask that you do not get mad at me if there is any simple mistake or something i did not do

Why can’t you just use the roblox api?

i tried using that and i got an error saying something along the lines of : " HttpService is not allowed to access ROBLOX resources"

For future reference, you should copy and paste your code instead of screenshotting it as it makes it easier for everyone to change and make modifications.

The reason why you’re getting a 404 error is because the endpoint:

"https://api.roproxy.com/universes/get-universe-containing-place?placeid=12840793936"

doesn’t exist.

This is likely because roblox retired the https://api.roblox.com endpoint last year, and thus, it also doesn’t exist for roproxy.

As an alternative, I assume you would want to use this endpoint instead:

"https://apis.roproxy.com/universes/v1/places/12840793936/universe"

and the key for the UniverseId is universeId, not UniverseId.

4 Likes

THANK YOU! ill try editing my code now and see what occurs

Roblox should honestly lift that restriction. They even promote the use of proxies to access roblox api, so why can’t you just send it directly? Why doesn’t roblox make their own proxy, or why don’t they just remove that restriction? I’m assuming it’s some sort of security measure that they didn’t look back at since.

1 Like

I also think that as well, hopefully we get some sort of “easier solution” to this in the future

the proxy works perfectly, although one error now arises which is:

"ServerScriptService.Script:13: invalid argument #2 to ‘format’ (number expected, got nil) "

local httpService = game:GetService('HttpService')
local universeId = "https://apis.roproxy.com/universes/v1/places/12840793936/universe"

local success, result = pcall(function()
	return httpService:GetAsync(universeId)
end)

if success then
	if result then
		local decode = httpService:JSONDecode(result)
		local gameVotes = "https://games.roproxy.com/v1/games/votes?universeIds=%.f"
		local success2, result2 = pcall(function()
			return httpService:GetAsync(gameVotes:format(decode['UniverseId']))
		end)

		if success2 then
			if result2 then
				local decode2 = httpService:JSONDecode(result2)
				print(decode2)
			end
		else
			warn(result2)
		end
	end
else
	warn(result)
end

To add to this if the universe id is the universe of your own game, you can just use game.GameId instead of fetching it through HTTP service.

1 Like

thanks for the tip! ill try to see if i can work on the second error, and check if gameID will produce the same results

In addition to what @NyrionDev said, this should be:

return httpService:GetAsync(gameVotes:format(decode['universeId'])) -- lowercase 'u'
1 Like

So far it works but i get “error 403 (forbidden)” my guess is this has something to do with the id i put in, correct?

From what I read from the main thread for roproxy, the "https://games.roproxy.com/v1/games/votes?universeIds=" endpoint seems to have been disabled by the owner:

So to work around this, you would have to host your own proxy as the reply states. I have very little experience with creating proxies, so I unfortunately can’t help you there, however, there may be some tutorials on the forum to help you with that.

i see, would creating my own proxy be complicated and or cost money? if so do you know any active proxys i could use?

You can use roproxy lite and host it via one of the applications linked below in the main page. Whether or not it will cost money depends on the service you’re using and how many requests are being sent to it (some are free up until you hit a request limit).

This is also written in the Go language, so unless you have experience with that, you may not be able to make any modifications or adjustments as you see fit.

You can also host it from your own device instead, however, you would need to keep your device on 24/7 for it to act as a true server.


There’s another proxy you can use: [v1.6a] LegoProxy - A rotating Roblox Proxy for accessing Roblox APIs

But I’m not sure how reliable it is.

Alright, i appreciate all this information. Ill try creating my own with roproxy lite, learn a bit of go and see what happens.

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