internal server error

Asked Jul 10, 2021·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello community!
I'm trying to connect to NightbotAPI but I can't get the token, no matter what I try, I always get internal server error... not sure if I'm doing something wrong or it's just the API failing.

Here is my query → https://api.nightbot.tv/oauth2/token?client_id=XXX&client_secret=XXX&code=XXX&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fvoxout.xyz

Any ideas are welcome, thanks in advance.

1 reply

Hiya! Yeah that error message doesn't help, you need to send your data in the body of the request, not as GET parameters.
The body needs to be an urlencoded string (application/x-www-form-urlencoded).