DiscordAPIError - Invalid code in request
i'm getting this error sometimes when trying to exchange a token on
/oauth2/token
after logging in with oauth:
the weird thing: its working most of the time, which is also why i cant really reproduce it.
my callback looks like this:
which means the request shouldnt even be made when there is no code.
/callback
is also the direct redirect_uri, which means the request there should only have valid codes directly from discord
any ideas here?4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.already did, i just thought maybe someone here could help me out. this is the most active discord development help server i know of, after all
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View