authentication error

Hello, I wanted to try writing a Twitch chatbot in Python, but I encountered an error:

I can attach a screenshot of the code as well as the bot’s settings.
image

I’m asking for help, as I’ve already tried many things. Nothing has worked :frowning:

The 404 indicates that there is no code running to capture the response as http://localhost:8000/auth/twitch/callback

The screenshot of the 404 indicates the constructed oAuth entry point is incorrect. as the redirect URI doesn’t match. But your code doesn’t show the creationg of said URL

The presented screenshot of code doesn’t seem to include all the relavant code (and I can’t copy from a screenshot)

And the presented screenshot doesn’t seem to contain a web server at all, just the bot code.

You seem to be using a library so you might get better help from the library devs.