kanimaru / twitcher

Full Twitch Library for Godot
MIT License
65 stars 9 forks source link

Any ideas why the authentication is failing? #44

Closed QuinnQueue closed 2 months ago

QuinnQueue commented 2 months ago

I'm trying to send messages and receive messages from twitch chat for a custom overlay which I plan to do a lot more with later but for now this will do. I've done everything in the chat example scene. My token is up to date:

Here's what the log looks like: [TwitchService] Setup [TwitchAuthorization] Connecting to https://id.twitch.tv [TwitchAuthorization] Start Request(0) /oauth2/.well-known/openid-configuration [TwitchHttpClient-1-https://api.twitch.tv] connecting to https://api.twitch.tv [TwitchService] Start [TwitchHttpClient-1-https://api.twitch.tv] Connection state changed: true [TwitchAuthorization] Start request processing [0] /oauth2/.well-known/openid-configuration [TwitchAuthorization] Connecting to https://id.twitch.tv true [TwitchWebsocket] Set connection to wss://irc-ws.chat.twitch.tv:443 [TwitchHttpClient-1-https://api.twitch.tv] Start Request(0) /helix/chat/emotes/global? [TwitchHttpClient-1-https://api.twitch.tv] Start request processing [0] /helix/chat/emotes/global? [TwitchHttpClient-1-https://api.twitch.tv] Start Request(0) /helix/chat/emotes?broadcaster_id=1054205040& [TwitchHttpClient-1-https://api.twitch.tv] Start request processing [0] /helix/chat/emotes?broadcaster_id=1054205040& [TwitchHttpClient-1-https://api.twitch.tv] Start Request(0) /helix/chat/badges/global? [TwitchHttpClient-1-https://api.twitch.tv] Start request processing [0] /helix/chat/badges/global? [TwitchHttpClient-1-https://api.twitch.tv] Start Request(0) /helix/chat/badges?broadcaster_id=1054205040& [TwitchHttpClient-1-https://api.twitch.tv] Start request processing [0] /helix/chat/badges?broadcaster_id=1054205040& [TwitchWebsocket] Set connection to wss://eventsub.wss.twitch.tv/ws [TwitchWebsocket] Set connection to ws://127.0.0.1:8081/ws [TwitchHttpClient-1-https://api.twitch.tv] Start Request(0) /helix/bits/cheermotes?broadcaster_id=1054205040& [TwitchService] Initialized and ready [TwitchHttpClient-1-https://api.twitch.tv] Start request processing [0] /helix/bits/cheermotes?broadcaster_id=1054205040& [TwitchWebsocket] Connecting to wss://irc-ws.chat.twitch.tv:443 [TwitchWebsocket] connected to wss://irc-ws.chat.twitch.tv:443 [TwitchIRC] < NICK QueueStudioQuinn [TwitchIRC] < CAP REQ :twitch.tv/commands [TwitchIRC] < JOIN #queuestudioquinn [TwitchIRC] > [ NOTICE] tmi.twitch.tv: Login unsuccessful [TwitchIRC] Authentication failed. [TwitchIRC] Can't connect [TwitchIRC] > [ CAP] tmi.twitch.tv: twitch.tv/commands [TwitchIRC] < JOIN #queuestudioquinn

Here's what my general project settings look like: settings

Here's my twitcher project settings look like: token valid

Here's what I've already tried:

Here's what I haven't tried:

kanimaru commented 2 months ago

Hi that seems to be a hard problem. I would exclude network based issues cause you got a connection to IRC. Browser shouldn't be a problem either, you got redirected to the login page / authorization of the scopes? Looks similar to that: image

second thing that could be a problem. Under wich account did you created the application? Do you have an explicit bot account? Cause twitch doesn't allow Bot accounts without mod permissions to read chat of other persons anymore.

Another option you could look into Twitch has a new eventsub that also receives chat messsages. https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelchatmessage In my opinion even the better solution cause it does alot of parsing for you. When I wrote the lib it wasn't there, so the example still uses the IRC one.

QuinnQueue commented 2 months ago

Nope! Never seen a page like this before. Here's the page it directs me to before it breaks.

Screenshot (29)

then i get a problem loading page error. Some stuff in the URL that I found: redirect_uri+does+not+match+registered+URI

Still trying stuff now my token went back to 1970 😳

QuinnQueue commented 2 months ago

FIXED! I used http intsead of https