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

403 Forbidden while using api.roblox.com (api.rprxy.xyz)?

Asked by 4 years ago
Edited 4 years ago

Hello, i am making a custom player list to remove the new fat roblox player list wich is the old and i'm trying to know when someone is following another person so i used api.rprxy.xyz (proxy to use api.roblox.com) the request went well but i'm getting 403 Forbidden back, why?

local http = game:GetService("HttpService")
local client = script.Parent.Parent.Parent --// player
game.Players.PlayerAdded:Connect(function(plr)
local e = http:RequestAsync({
    Url = "https://api.rprxy.xyz/user/following-exists",
    Method = "GET",
    Headers = {
        userId = tostring(plr.UserId),
        followerUserId = tostring(client.UserId)
    }
    })
table.foreach(e,print)
--[[
table.foreach returns:
"
StatusMessage Forbidden
Success false
StatusCode 403
Body {"errors":[{"code":403,"message":"Forbidden"}]}
Headers table (random numbers)
"
--]]
end)

What could i be possibly be doing wrong?

0
Don't use table.foreach, it's deprecated, instead use a generic for loop. Also, you know what 403 means? It means forbidden. So make it not forbidden. programmerHere 371 — 4y
0
still, how do i make it not forbidden maumaumaumaumaumua 628 — 4y
0
i'm using a proxy maumaumaumaumaumua 628 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Hi! As stated in the HTTPService wiki page. You may NOT send requests to api.roblox.com

Try using AssetService or something else

0
LukaRoblox100, i can send requests to api.roblox.com but i use a proxy instead because if i used api,roblox.com it would drop an error but this is not the case. maumaumaumaumaumua 628 — 4y
0
uhh, but clearly on the wiki it says "This service is not allowed to send requests to any of the Roblox websites such as http://www.roblox.com or api.roblox.com" Luka_Gaming07 534 — 4y
0
its a proxy ohw Luka_Gaming07 534 — 4y
0
well... i did some testing in the browser and it also errored Luka_Gaming07 534 — 4y
Ad

Answer this question