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

HTTP 403 (Forbidden) on roblox client only how fix?

Asked by
ym5a 52
3 years ago
01game.Players.PlayerAdded:Connect(function(player)
02 
03 
04 
05    local data = {
06        ["embeds"] = {{
07            ["title"] = "Player Info",
08            ["thumbnail"] = {
09                ["url"] = string.format("https://www.roblox.com/headshot-thumbnail/image?userId=%s&width=150&height=150&format=png", player.UserId)
10            },
11            ["fields"] = {
12                {
13                    ["name"] = "Name: "..player.Name,
14                    ["value"] = "Display Name: "..player.DisplayName,
15                    ["inline"] = true
View all 35 lines...

So it works in Roblox Studio but on the roblox client roblox player it errors with HTTP 403 (Forbidden) its a discord api btw and ive tured HTTP Requests on and API thing

2 answers

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

Heya, might I recommend googling what HTTP 403 is?

The HTTP 403 Forbidden client error status response code indicates that the server understood the request but refuses to authorize it.

Also a post in scripting helpers that highlights the same issue you have.

Ad
Log in to vote
0
Answered by 3 years ago

Try using "https://discordapp.com" instead of "https://discord.com" at the start of the webhook URL.

Answer this question