Python + Flask Application - ConnectionRefusedError: [Errno 111]

I reached out and they say their hosting allows for IRC services. I asked about ports 80 and 443, which they said are just fine to use. Kind of at a loss here.

Could I be using the wrong authentication method? The app doesnt utilize any user input - it just reads chat and updates the website (it’s a chart that intakes votes). I generated an oauth token using Twitch Chat Password Generator but I’m guessing that is not the correct way to do it. I just dont know how I can launch this flask app that requires no user input, listens for chat, and updates the page.

I see that you posted this tool a while back: https://barrycarlyon.github.io/twitch_misc/examples/token_checker/

Output

Token is valid

client_id redacted
login redacted
scopes * channel:moderate
  • channel_editor
  • chat:edit
  • chat:read
  • whispers:edit
  • whispers:read|
    |user_id|redacted|
    |expires_in|0|

Token is type “User Access”

This Tokens Twitch Profile from Helix:

id redacted
login redacted
display_name redacted
type
broadcaster_type
description just another bot
profile_image_url redacted
offline_image_url
view_count 0
created_at 2022-11-22T23:43:22Z