r11c
(r11c)
January 29, 2020, 2:41am
#1
So I’ve tried googling this error while using the API references and documentation but it does not seem to want to work. I am not sure If I am doing this correctly but… I need some help.
Script:
local trello = require(script.Parent.TrelloAPI)
local board = trello:GetBoardID(“Panel”)
local ListID = trello:GetListID(“Banned”,board)
print(board, ListID)
local newcard = trello:AddCard(“”…reason ,“”…desc,ListID)
Error:
20:37:38.191 - ServerScriptService.TrelloAPI:812: No Parameters Found!
20:37:38.192 - Stack Begin
20:37:38.192 - Script ‘ServerScriptService.TrelloAPI’, Line 812 - function AddCard
20:37:38.192 - Script ‘ServerScriptService.Engine’, Line 9
20:37:38.193 - Stack End
do reason
instead of ""..reason
and the same thing with desc. Putting “” makes no difference.
r11c:
“”…reason
That is not how varargs work. You can’t index them like that (if that is what you’re trying).
A solution to this is having this line before the code:
local args = {...}
And then you can get your variables reason and desc from there. For example if reason is the first index in the arguments and desc the second, then:
local newcard = trello:AddCard(args[1], args[2], ListID)
This is based on my assumption that you’re trying to use varargs like that. If not, this answer can be deemed irrelevant.
blokav
(blokav)
January 29, 2020, 2:58am
#4
It looks like he meant to use ..
instead of ...
to try to cast a value into a string by concatenating with an empty string. If that’s the case then it would make more sense to just use tostring
But is it varargs you’re using?
Try printing reason, desc and ListID before calling the AddCard method. If one is nil, that’s a problem.
1 Like
r11c
(r11c)
January 29, 2020, 3:01am
#7
yeah i did and ListID is showing nil I do not know why and how to repair this?
r11c
(r11c)
January 29, 2020, 3:01am
#8
I’ve done the things I am aware of to try and fix it
It seems that GetListID returns nil if it cannot find a list with given name in the board.
Have you tried printing your boardID to see if that’s correct?
r11c
(r11c)
January 29, 2020, 3:04am
#10
Yeah I’ve tried printing board but it shows " 5e30c595e03259142c929674"
I am not sure if it is supposed to print like that.
Okay so, if you go to https://trello.com/b/5e30c595e03259142c929674 on the account that you’re using for your bot, does the board exist and is there a list called “Banned”?
Are you checking this on your bot’s account or your own account?
It may be possible that your API token does not have the necessary permissions to read from your account (and thus it cannot see lists).
r11c
(r11c)
January 29, 2020, 3:11am
#14
how do i check my bots account if it has access to read? I am pretty sure because I’ve authorized it following instructions in the trello api
Login on the Trello account you generated an API token for and check if the list is visible?
r11c
(r11c)
January 29, 2020, 3:13am
#16
Deferend
(Deferend)
January 29, 2020, 3:14am
#17
Just as a general recommendation, it is ill-advised to use Trello as a database due to its speed lagging behind that of regular databases. It’s also just not meant to be used as a database.
Trello never blocked Roblox. You simply are using the API incorrectly.
Trello isn’t meant to be a database, it’s meant to be a personal management system. Even then, Trello’s time efficiency equates up to O(n^2) when most databases are O(log n) (I didn’t run this test myself, I got these values from someone who’s worked with Trello and a custom database solution).
Who cares? Nothing is going to change and not everything can be fair.
Discord already blocked Roblox’s UserAgent because develop…
r11c
(r11c)
January 29, 2020, 3:18am
#18
still I want to use Trello though…
r11c
(r11c)
January 29, 2020, 3:23am
#19
I am so confused why is ListID still showing nil
Meta_data
(Meta)
January 29, 2020, 3:49am
#20
If you’re using the Trello API module by nstrike, I’d suggest finding a different module.
Though that one works, It’s quite old, and doesn’t respect any Trello site-wide rate limits.
As for your issue, I’m not sure what ""..reason
is for, if reason is already a string? I also don’t see your desc variable defined anywhere.
But it should be this:
local newcard = trello:AddCard(reason, desc, ListID)
And the Trello API code, requires at least 3 parameters in AddCard or it will do that error.