Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HTTP trust check failed error?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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

0
So how would I do that? TheDeadlyPanther 2460 — 9y
Ad
Log in to vote
1
Answered by 9 years ago

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

Answer this question