discord-js-bot
discord-js-bot copied to clipboard
Dashboard error user_id
Unhandled exception: Invalid Form Body user_id[NUMBER_TYPE_COERCE]: Value "null" is not snowflake.
this is the error I'm getting
any help on fixing this?
I added this code and definitely has an issue trying to retrieve the user.id if (!userData || !userData.id) { throw new Error("Invalid user data: missing user ID"); }
Unhandled exception: Invalid Form Body user_id[NUMBER_TYPE_COERCE]: Value "null" is not snowflake.
this is the error I'm getting
Could you share the error logs from "/logs" folder
It doesn't even log the errors except for the console. I can be more specific about what's going on. After authorizing the discord bot to log in to the dashboard, my user or anyone it throws this error ERROR: Unhandled exception: Invalid Form Body user_id[NUMBER_TYPE_COERCE]: Value "null" is not snowflake.
It looks like the userData.id is null, causing this error. I need help figuring out how to fix this. Cause with this error it doesn't redirect the web to the /selector