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

HTTP service trust fail checked, operation successful?

Asked by
Roytt 64
7 years ago

I tried using this simple serverscript:

wait(1)
hs = game:GetService("HttpService")
name = "https://api.roblox.com/users/get-by-username?username="
name = (name.."Roytt")
test = hs:GetAsync(name, true)
print(test)

but I get the error prsented in the title. I'm not sure what's wrong.

0
Make sure the HTTPService is enabled. Otherwise it's possible the site no longer is allowed to be used? Tkdriverx 514 — 7y
1
You can't access ROBLOX domains using HTTPService, for security reasons. BlueTaslem 18071 — 7y
0
I got it from here : http://wiki.roblox.com/index.php?title=Web_APIs , Are you sure its not possible to use it? then can I use a proxy like I've seen other people do? Roytt 64 — 7y
0
Also, I think api.roblox.com is a domain that can be used for this? Roytt 64 — 7y
0
api is a sub-domain of the roblox domain making it inaccessible with the HttpService still MrLonely1221 701 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

There is no problem with your code. Roblox just blocks all traffic from HTTP Service to the roblox website.

Long story short, you are not allowed to access the roblox websites from HTTP Service in game.

Short story long, you can't access roblox websites with HttpService, but you can use this website https://rprxy.xyz/ to go to the roblox page you were trying to access with http service. If you use this site, you would simply change it from roblox.com to rprxy.xyz

wait(1)
hs = game:GetService("HttpService")
name = "https://api.rprxy.xyz/users/get-by-username?username="
name = (name.."Roytt")
test = hs:GetAsync(name, true)
print(test)

This code would go to the roblox proxy site and get the requested information. This is a good way to access anything on the roblox pages that roblox doesn't allow you to access. Here is a link to the HttpService wiki.

I hope this answered your question. If it did please accept this as the answer, if it didn't feel free to ask any questions you have. If you have any other non-related questions feel free to ask those too.

Ad

Answer this question