Nightbot Application Development

Asked Sep 26, 2023·1 reply·Last activity 2 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 Guys,

I been trying to use Nightbot Application which i need to implement for sending messages to joined channel. whenever i try to get Code endpoint with Client ID with oAuth2 Authorization it just says unknown error occurred. Please explain why its happing thank you.

https://api.nightbot.tv/oauth2/authorize?response_type=code&client_id=CLIENT_ID&redirect_uri=CALLBACK_URI&scope=channel_send

I am talking about Nightbot->Profile->Applications.

Please let me know if there is any other question.

image.png

1 reply

The website will always return an unknown error when an error occurs during authorization. If you inspect the authorization request in the developer console, you will see the reason for the failure. Most likely your redirect URI is invalid. Be sure to configure the redirect URI you wish to use in your application settings.