HttpError: SslConnectFail When using httpservice:getasync


local function RequestLikeCount()
	local suc,err = pcall(function()
		local Data = HttpService:GetAsync("https://games.roproxy.com/v1/games/7234332832/votes")
		
		return Data.upVotes
	end)
	if err then return err end
end

That is my code. Im receiving the error HttpError: SslConnectFail

Httpservice is enabled in studio, how will i fix this???

2 Likes

This could be due to the wrong pcall use. You pcall function isn’t correctly returning the data considering getasync is running inside the pcall but the returned value isn’t given. Also given the fact you’re using RoProxy, Sometimes the proxy has downtime or is blocked, If a pcall fix doesn’t work, try checking the proxy link and if that isn’t working, it’s that.

Its nothing to do with the pcall, a pcall wouldnt cause an error like this, ive already tried it without a pcall when initially setting up the script.

Theres no wrong pcall usage, it is pcalled incase of an error in receving the data from roproxy while my game is up.

That’s my fault. I know it sounds clique but have you checked the basic issues, for example HTTP requests being enabled in game settings, etc. Also try to print data even if failed to inspect the response further.

Np. Httpservice is enabled & ive still tried just printing the response and thats all i get

The issue seems to be confusing me too, considering your proxy is working and showing all the correct data so it isn’t to do with the PROXY itself. Maybe ROBLOX is having some SSL issues?

I came across this forum post with a similar issue:

I know this sounds random but, have you tried joining the game through the regular ROBLOX client? That way the request is being made from ROBLOX’s servers. This would help to differentiate whether this is a ROBLOX issue or some weird configuration quirk on your computer.

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