Http: SslConnectFail Error when trying to get player inventory

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I’m trying to use this system I found on the devforum where it can find gamepasses from a certain player.

  1. What is the issue? Include screenshots / videos if possible!

It keeps giving the error Http: SslConnectFail

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have searched on how to fix it but I have not found any.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local MarketplaceService = game:GetService("MarketplaceService")
local ProximityPrompt = game:GetService("ProximityPromptService")
local http = game:GetService("HttpService")

local baseUrl = "https://www.roproxy.com/users/inventory/list-json?assetTypeId=34&cursor=&itemsPerPage=100&pageNumber=%s&userId=%s"

local Prompt = script.Parent.Prompt.Claim

local StatsFolder = script.Parent.Stats

local function getUserCreatedGamepassesRecursive(userId, gamepasses, pageNumber, lastLength)
	print(1)
	gamepasses = gamepasses or {}
	pageNumber = pageNumber or 1
	lastLength = lastLength or math.huge

	local requestUrl = baseUrl:format(pageNumber, userId)
	local success, result = pcall(function()
		return http:GetAsync(requestUrl)
	end)

	if success then
		print(2)
		if result then
			print(3)
			local success2, result2 = pcall(function()
				return http:JSONDecode(result)
			end)

			if success2 then
				print(4)
				if result2 then
					print(5)
					for _, gamepass in ipairs(result2.Data.Items) do
						if gamepass.Creator.Id == userId then
							table.insert(gamepasses, gamepass.Item.AssetId)
						end
					end

					if result:len() ~= lastLength then
						lastLength = result:len()
						pageNumber += 1
						getUserCreatedGamepassesRecursive(userId, gamepasses, pageNumber, lastLength)
					end
				end
			else
				warn(result)
				getUserCreatedGamepassesRecursive(userId, gamepasses, pageNumber, lastLength)
			end
		end
	else
		warn(result)
		getUserCreatedGamepassesRecursive(userId, gamepasses, pageNumber, lastLength)
	end
	return gamepasses
end

ProximityPrompt.PromptTriggered:Connect(function(prompt, player)
	if prompt == Prompt then
		if StatsFolder.Owner.Value == nil then
			StatsFolder.Owner.Value = player
			
			for i = 1, 100000 do
				local gamepasses = getUserCreatedGamepassesRecursive(player.UserId)
				
				for i, gamepassId in pairs(gamepasses) do
					local newValue = Instance.new("NumberValue")
					newValue.Name = "Gamepass" .. i
					newValue.Value = gamepassId
					newValue.Parent = StatsFolder.Gamepasses
				end
			end
		end
	end
end)