Rank 1: Thread
Hi i have a function that should create a team.
The function triggers correctly.
And the loggs show this.
Trying to create team for user 15907099529 with name FriendsOf-Test
Error creating team for user 15907099529 with name FriendsOf-Test
{}
Why to the logs not show what the error is.
I am a bit stuck on that to do. I have included my code for help.
try { console.log(`Trying to create team for user ${UserId} with name-${UserId}`); const teamCreateResponse = await teams.create(UserId, UserId); console.log("Team created successfully!"); console.log(teamCreateResponse); res.json({ success: true, response: teamCreateResponse, }); } catch (teamErrorResponse) { console.log(`Error creating team for user ${UserId} with name-${UserId}`); console.log(teamErrorResponse); res.json({ success: false, response: teamErrorResponse, }); }