discord-js-bot icon indicating copy to clipboard operation
discord-js-bot copied to clipboard

Dashboard error user_id

Open AC1Studios opened this issue 1 year ago • 4 comments

Unhandled exception: Invalid Form Body user_id[NUMBER_TYPE_COERCE]: Value "null" is not snowflake.

this is the error I'm getting image

AC1Studios avatar Mar 30 '23 03:03 AC1Studios

any help on fixing this?

AC1Studios avatar Mar 30 '23 03:03 AC1Studios

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"); }

AC1Studios avatar Mar 30 '23 13:03 AC1Studios

Unhandled exception: Invalid Form Body user_id[NUMBER_TYPE_COERCE]: Value "null" is not snowflake.

this is the error I'm getting image

Could you share the error logs from "/logs" folder

saiteja-madha avatar Mar 30 '23 18:03 saiteja-madha

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

AC1Studios avatar Mar 31 '23 04:03 AC1Studios