Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

HTTP trust check failed error?

I am making a script that gets the date when a player joined ROBLOX through their profile, but I keep getting this error:

Content failed because HTTP 404 (HTTP/1.1 404 Not Found)

httpGet --link TL;DW-- failed. Trying again. Error: --link TL;DW-- : Trust check failed, the operation completed successfully

This is my segment of code:

function getJoinDate(id)
	local link = "http://www.roblox.com/users/" ..id.. "/profile"
	local cut = [[<p class="stat-title">Join Date</p><p class="rbx-lead">%.+</p>]]
	local serv = game:GetService("HttpService")
	local html
	local success,msg = pcall(function() html = serv:GetAsync(link,false) end)
	if success then 
		local find = html:match(cut)
		if find then
			return find
		else
			return "Cannot Get Join Date"
		end
	else
		return "Cannot Get Join Date (Access denied to ROBLOX website)"
	end
end

For some reason, this error is ignoring my pcall.

How would I fix this? Thank you :)

2 answers

✓ Accepted answer

You require to use the API, as the Roblox website has too much security.

So, if you use such as:

http://www.roblox.com/My/Groups.aspx?gid=851558

that would error.

The correct way to fix it is use the API or the proxy:

http://rproxy.pw/My/Groups.aspx?gid=851558

This should be the fix:

function getJoinDate(id)
    local link = "http://rproxy.pw/" ..id.. "/profile"
    local cut = [[<p class="stat-title">Join Date</p><p class="rbx-lead">%.+</p>]]
    local serv = game:GetService("HttpService")
    local html
    local success,msg = pcall(function() html = serv:GetAsync(link,false) end)
    if success then 
        local find = html:match(cut)
        if find then
            return find
        else
            return "Cannot Get Join Date"
        end
    else
        return "Cannot Get Join Date (Access denied to ROBLOX website)"
    end
end

1 comment

0

So how would I do that?

ROBLOX does not allow you to use the HTTP service with secure websites, such as www.roblox.com. You can use the ROBLOX proxy server instead here:

-rproxy.pw

This discussion is preserved as it was. New answers, comments, and votes are closed.