I'm a bit outdated and have been living under a rock lately. I wanted to create a simple trello that makes a Report Card I tried it but it never worked and got me this error And yes it is a ServerScript
7 characters were replaced from the key and token while making this thread for safety purposes.
12:49:31.453 - HTTP 400 12:49:31.453 - Stack Begin 12:49:31.454 - Script 'ServerScriptService.Script', Line 5 12:49:31.454 - Stack End
IDK why I've tried everything including youtube google search etc and it still won't work Any help, clue would be appreciated
Here's the script
local Trello = "dor-reports" local Key = "1234567890" local Token = "abcdefghijklmnopqrstuvwxyz1234567890" local http = game:GetService("HttpService") local get = http:GetAsync('https://api.trello.com/1/boards/'..Trello..'/lists?key='..Key..'&token='..Token,true) local tab=http:JSONDecode(get) for _,v in pairs(tab) do if v.name:match('TRELLOLISTNAME') then boardid = v.id end end text="Test" plr="John Doe" local musget = http:PostAsync('https://api.trello.com/1/cards/?key='..(Key)..'&token='..(Token), http:JSONEncode({["name"]=(" | "), ["desc"]=("Feedback " .. text .. "\nSent by: "), ["due"]=nil,["idList"]=boardid,["urlSource"]=nil}))
Figured the problem out.
You can't require a module script that uses HTTPGET using a local script, instead use a server script and add remote events to fire them.
Easy as that.