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

I keep getting the same error with HTTP SERVICE how would I go about fixing it?

Asked by 6 years ago
Edited 6 years ago

My issue is on line 21.

02:52:11.977 - HTTP 400 (HTTP/1.1 400 BAD REQUEST)

How would I fix this?

local HTTP = game:GetService("HttpService")


local key = "" -- discord key

local HookData = {

    ["Username"] = "";
    ["Content"] = "";



}



game.Players.PlayerAdded:connect(function(Player)
    if Player.Name == "Fraxinus_Sanctus" then
        HookData.Content = "Fraxinus_Sanctus Has joined the game: .... Come join him!"
        HookData.Username = "Genesis Studios Admin Joined"
        HTTP:PostAsync(key,HTTP:JSONEncode(HookData))
    end

end)
0
I didnt leave the discord key, cause I don't want anyone messing around with the webhook. Fraxinus_Sanctus 38 — 6y
0
Did you enable HTTP Services in your game? Mr_MilkysButler 47 — 6y
0
Home<GameSettings<Secturity<Allow HTTP Services. Mr_MilkysButler 47 — 6y
0
Yeah HTTPSERVICES is enabled. Fraxinus_Sanctus 38 — 6y

Answer this question