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

Why do I have this error 403 in HttpService?

Asked by
Ince_FS 13
5 years ago

I don't understand why I got this error.

Server

local Acces = "https://discordapp.com/api/webhooks/Censored/Censored"

local REvent = game:GetService("Players"):WaitForChild("test")

local HTTP = game:GetService("HttpService")

function REvent.OnServerInvoke()
    HTTP:PostAsync(Acces, HTTP:JSONEncode({["content"] = ("test")}))
end

Client

script.Parent.MouseButton1Down:Connect(function()
    game.Players.test:InvokeServer()
end)
0
Add this to your script: `game:GetService("HttpService").HttpEnabled = true` (At the top) Leamir 3138 — 5y
0
The console tells me that I do not have the permissions to activate Ince_FS 13 — 5y
0
And i activated the HttpService in Game Settings Ince_FS 13 — 5y
0
Are you testing on the studio test(F5)? If yes,try testing on the official game Leamir 3138 — 5y
View all comments (2 more)
0
The error occurs in Online Mode not in Test Mode Ince_FS 13 — 5y
0
Don't use Players as storage, ReplicatedStorage exists for this very reason. User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Discord has blocked anyone with ROBLOX's UserAgent (Roblox/WinInet) from using their API. Studio uses a different UserAgent (RobloxStudio/WinInet IIRC) which isn't blocked by Discord.

You'll have to use a proxy.

Ad

Answer this question