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

Why do I have this error 403 in HttpService?

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)

6 comments

0

Add this to your script: game:GetService("HttpService").HttpEnabled = true (At the top)

0

The console tells me that I do not have the permissions to activate

0

And i activated the HttpService in Game Settings

0

Are you testing on the studio test(F5)? If yes,try testing on the official game

0

The error occurs in Online Mode not in Test Mode

0

Don't use Players as storage, ReplicatedStorage exists for this very reason.

1 answer

✓ Accepted answer

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.

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