Trello API issue

Getting no output whatsoever and I cannot figure out the issue with this code. Can anyone help?

local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI:GetBoardID("ElectionsData")

local ListID = TrelloAPI:GetListID("RegisteredVoters",BoardID)

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function()
		local Cards = TrelloAPI:GetCardsInList(ListID)
		for v,i in pairs(Cards) do
			if i.name == player.Name then
				print("Player is a registered voter.")
			else
				print("Player is NOT a registered voter.")
			end	
		end
	end)
end)
1 Like

Is this in StarterPlayerScripts?

No its not, ServerScriptService.

1 Like

Ok i was about to say it wont be able to access serverscriptservice.

Is it running before the player character is added?

No it is not. I included a character added function in there.

This should not be a solution???

First: Why are you using CharacterAdded here, this will unnecessarily spam requests

Second: do print(i) here and ss the output
image

This thread is over 3 months old, I eventually solved the issue with trial and error and I can’t remember what ended up working.

Oh haha I didn’t even notice how old it was, looks like it was bumped arbitrarily – my bad

All good. I think you’re 100 correct.