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

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

game.Players.PlayerAdded:Connect(function(player)



	local data = {
		["embeds"] = {{
			["title"] = "Player Info",
			["thumbnail"] = {
				["url"] = string.format("https://www.roblox.com/headshot-thumbnail/image?userId=%s&width=150&height=150&format=png", player.UserId)
			},
			["fields"] = {
				{
					["name"] = "Name: "..player.Name,
					["value"] = "Display Name: "..player.DisplayName,
					["inline"] = true
				},
				{	["name"] = "User ID",
					["value"] = "User ID: "..player.UserId,
				},
				{
					["name"] = "Epoch/Unix time",
					["value"] = tostring(tick())
				},
				{
					["name"] = "Game Name: "..tostring(game),
					["value"] = string.format("https://www.roblox.com/games/%s/",game.PlaceId)
				}
				
			}
		}}
	}
	print(tick())
	local newData = game.HttpService:JSONEncode(data)
	game.HttpService:PostAsync(url,newData)
end)

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

✓ Accepted answer

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.

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