HttpError: TlsVerificationFail

Getting HttpError:TlsVerificationFail using this url: https://catalog.roproxy.com/v1/search/items/details?Category=3&Subcategory=13&Limit=30&CreatorName=%s&cursor=%s

My code is from this post: How can I loop through all of the user's tshirts that they put up for sale? - #7 by Forummer

Why is this happening?

What code are you actually using to send the request?
Does the issue occur only in game, only in studio, or in both?

I haven’t tested the code outside of studio. This is the code, though

local http = game:GetService("HttpService")

local baseUrl = "https://catalog.roproxy.com/v1/search/items/details?Category=3&Subcategory=13&Limit=30&CreatorName=%s&cursor=%s"

local function getUserGeneratedTShirtsRecursive(username, tshirts, cursor)
	tshirts = tshirts or {}
	cursor = cursor or ""
	local requestUrl = baseUrl:format(username, cursor)
	local success, result = pcall(function()
		return http:GetAsync(requestUrl)
	end)

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

			if success2 then
				if result2 then
					for _, tshirt in ipairs(result2.data) do
						table.insert(tshirts, tshirt.id)
					end

					cursor = result2.nextPageCursor
					if cursor then
						return getUserGeneratedTShirtsRecursive(username, tshirts, cursor)
					else
						return tshirts
					end
				end
			else
				warn(result)
			end
		end
	else
		warn(result)
	end
end

local username = "bleintant"
local userTShirts = getUserGeneratedTShirtsRecursive(username)

The second warn(result) line is the one that is giving me the error, meaning that the code isn’t even running past this block of code:

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

Removing this appears to make it work.
But that removes the purpose of this, I’ll look for a look around

After looking at the network traffic in the MarketPlace

local baseUrl = "https://catalog.roproxy.com/v1/search/items/details?Category=3&subcategory=ClassicTShirts&Limit=30&CreatorName=%s&cursor=%s"

This should work.

Still getting the same error unfortunately :frowning:

Alright, lemme try that --minimum characters
Tried it. I’m continually getting the same error for some reasn

If you are, then it’s likely that your ISP is blocking traffic to Roproxy or some other issue with your internet.
It works perfectly fine for me…

Try running it on a Roblox Server and see if it returns the same error in server console

Damn, it doesnt. Does this mean that I have to test in a real game all the time, or is there a way to fix that?

Honestly, no idea so I asked ChatGPT and this was the response.

1. Check for Roblox Studio Updates

  • Ensure they are running the latest version of Roblox Studio. An outdated version might lack recent SSL/TLS updates that are needed to properly verify certificates.

2. Check Network and Security Settings

  • Corporate or School Networks: If they are on a managed network (like a school or corporate network), it may have strict security policies that interfere with Roblox’s certificate verification.
  • VPN or Proxy: If they are using a VPN or proxy, suggest disabling it temporarily to see if that resolves the issue, as these can sometimes intercept and alter SSL certificates, leading to verification errors.
  • Firewall/Antivirus Software: Ask them to check if any firewall or antivirus software might be inspecting or blocking Roblox traffic. They might need to add Roblox Studio as an exception to allow unaltered connections.

3. Verify System Time and Date

  • Ensure the computer’s date and time are set correctly. Certificate verification relies on accurate system time, and a mismatch can cause verification to fail.

4. Clear Roblox Studio Cache

  • Sometimes, corrupted cache files can cause various issues in Roblox Studio. They can clear the cache by following these steps:
    • Close Roblox Studio.
    • Go to the Roblox folder (on Windows: C:\Users\USERNAME\AppData\Local\Roblox).
    • Delete the Cache folder inside.
    • Restart Roblox Studio and try the request again.

5. Try Reinstalling Roblox Studio

  • If none of the above steps work, a reinstall might help. They can uninstall Roblox Studio, remove any remaining files in the Roblox directory, and reinstall to ensure a clean setup.

6. Test on a Different Network or Computer

  • To rule out specific network or device issues, they could try running the request on a different network (like a home Wi-Fi connection) or another computer.