I am trying to follow the guides to get printouts in Godot when you send something from Twitch chat (eg: "!hello", "hi"). I am authenticated and have been able to send messages from Godot to chat (eg: "Hello from Godot!"), but I'm not able to receive them. I've got breakpoints in the callbacks and they never seem to get hit. I'm not sure what I'm doing wrong.
I'm following the guides here:
"Subscribe on Ready" is enabled
My logging looks like this. I'm a bit of a webdev novice so I'm not sure if the "connections closing" or "TLS handshake errors" would be causing this problem, or how to resolve them. I've also tried both http and https for the redirect URL. The docs use http but I assume we actually want https.
1796 D[Http] []: Set connection to wss://eventsub.wss.twitch.tv/ws
1796 D[Http] []: Set connection to ws://127.0.0.1:8080/ws
1804 D[TwitchService] is ready
1805 I[Http] {*:7170} start
1805 D[Http] [wss://eventsub.wss.twitch.tv/ws]: New auto_reconnect value: true
1805 I[Http] [wss://eventsub.wss.twitch.tv/ws]: Open connection
1805 D[Http] [wss://eventsub.wss.twitch.tv/ws]: Wait 1.0 before connecting
1805 I[TwitchEventsub] Eventsub setup
1805 D[TwitchAuth] start timer to refresh token (<EditorToken#-[[TOKEN]]>) in 12271.0 seconds
1806 D[TwitchChat] is ready
1806 I[TwitchMediaLoader] Preload channel(ID) badges
1806 I[Http] [https://api.twitch.tv/helix/chat/badges?broadcaster_id=ID] start request
1806 D[Http] [https://api.twitch.tv/helix/chat/badges?broadcaster_id=ID] request started
1806 I[TwitchMediaLoader] Preload channel(ID) emotes
1806 I[Http] [https://api.twitch.tv/helix/chat/emotes?broadcaster_id=ID] start request
1806 D[Http] [https://api.twitch.tv/helix/chat/emotes?broadcaster_id=ID] request started
1806 I[TwitchEventsub] Subscribe to channel.chat.message (v1)
1806 D[TwitchEventsub] Add subscribe action: channel.chat.message (v1)
1806 I[TwitchChat] Listen to Chat of [[USER]] (ID)
1806 D[TwitchService] is ready
1807 D[Http] [wss://eventsub.wss.twitch.tv/ws]: New auto_reconnect value: true
1807 I[Http] [wss://eventsub.wss.twitch.tv/ws]: Open connection
1807 I[TwitchEventsub] Eventsub setup
1827 I[Http] [wss://eventsub.wss.twitch.tv/ws]: Connecting to wss://eventsub.wss.twitch.tv/ws
2018 I[Http] [https://api.twitch.tv/helix/chat/badges?broadcaster_id=ID]
2018 D[Http] response received return from wait
2032 I[Http] [https://api.twitch.tv/helix/chat/emotes?broadcaster_id=ID]
2032 D[Http] response received return from wait
2199 I[Http] [wss://eventsub.wss.twitch.tv/ws]: connected
2199 I[TwitchEventsub] Connection established -> resubscribe to: [[]]
2199 I[TwitchService] TwitchService setup
Twitch setup
2199 I[Http] [https://api.twitch.tv/helix/users?] start request
2199 D[Http] [https://api.twitch.tv/helix/users?] request started
2200 I[TwitchService] TwitchService setup
Twitch Service successfully set up and authenticated!
2200 I[Http] [https://api.twitch.tv/helix/users?] start request
2200 D[Http] [https://api.twitch.tv/helix/users?] request started
2200 D[TwitchEventsub] Execute actions [[]]
2200 I[TwitchEventsub] Session established [[SOMETHING_HERE]]
2215 I[Http] [https://api.twitch.tv/helix/users?] problems with result
> response code: 0
> body:
2216 D[Http] Error happend during connection. Wait for 1.0
2216 I[Http] [https://api.twitch.tv/helix/users?] problems with result
> response code: 0
> body:
2216 D[Http] Error happend during connection. Wait for 1.0
0:0:2.205 | TLS handshake error: -110
stream_peer_mbedtls.cpp:88
0:0:2.206 | TLS handshake error: -28928
stream_peer_mbedtls.cpp:88
3203 I[Http] [https://api.twitch.tv/helix/users?] request done with result HTTPRequest.Result[5]
3203 D[Http] response received return from wait
3204 I[Http] [https://api.twitch.tv/helix/users?] start request
3204 D[Http] [https://api.twitch.tv/helix/users?] request started
3204 I[Http] [https://api.twitch.tv/helix/users?] request done with result HTTPRequest.Result[5]
3204 D[Http] response received return from wait
3204 I[Http] [https://api.twitch.tv/helix/users?] start request
3204 D[Http] [https://api.twitch.tv/helix/users?] request started
3400 I[Http] [https://api.twitch.tv/helix/users?] request done with result HTTPRequest.Result[0]
3401 D[Http] response received return from wait
Twitch user authenticated
Subscribed to Twitch messages
3401 I[Http] [https://api.twitch.tv/helix/users?] request done with result HTTPRequest.Result[0]
3401 D[Http] response received return from wait
Authenticated as: [[USER]] (ID: ID)
Sending 'Hello from Godot!' to channel ID: ID
3401 I[Http] [https://api.twitch.tv/helix/chat/messages?] start request
3402 D[Http] [https://api.twitch.tv/helix/chat/messages?] request started
3402 I[TwitchEventsub] Eventsub setup
3402 I[TwitchService] TwitchService setup
3402 I[TwitchService] Register command hello
Registered !hello command.
3653 I[Http] [https://api.twitch.tv/helix/chat/messages?] request done with result HTTPRequest.Result[0]
3653 D[Http] response received return from wait
12226 D[Http] [wss://eventsub.wss.twitch.tv/ws]: Wait 1.0 before connecting
12226 I[Http] [wss://eventsub.wss.twitch.tv/ws]: connection was closed [4003]: connection unused
13213 I[Http] [wss://eventsub.wss.twitch.tv/ws]: Connecting to wss://eventsub.wss.twitch.tv/ws
13577 I[Http] [wss://eventsub.wss.twitch.tv/ws]: connected
13577 I[TwitchEventsub] Connection established -> resubscribe to: [[]]
13577 D[TwitchEventsub] Execute actions [[]]
13577 I[TwitchEventsub] Session established [[SOMETHING_HERE]]
23588 D[Http] [wss://eventsub.wss.twitch.tv/ws]: Wait 1.0 before connecting
23588 I[Http] [wss://eventsub.wss.twitch.tv/ws]: connection was closed [4003]: connection unused
24575 I[Http] [wss://eventsub.wss.twitch.tv/ws]: Connecting to wss://eventsub.wss.twitch.tv/ws
24939 I[Http] [wss://eventsub.wss.twitch.tv/ws]: connected
24939 E[TwitchEventsub] Stopped eventsub cause of no subscription.
24939 D[Http] [wss://eventsub.wss.twitch.tv/ws]: Websocket activly closed
24939 D[Http] [wss://eventsub.wss.twitch.tv/ws]: New auto_reconnect value: false
25122 I[Http] [wss://eventsub.wss.twitch.tv/ws]: connection was closed [1000]: client disconnected
Any help would be appreciated, thanks!
I am trying to follow the guides to get printouts in Godot when you send something from Twitch chat (eg: "!hello", "hi"). I am authenticated and have been able to send messages from Godot to chat (eg: "Hello from Godot!"), but I'm not able to receive them. I've got breakpoints in the callbacks and they never seem to get hit. I'm not sure what I'm doing wrong.
I'm following the guides here:
"Subscribe on Ready" is enabled
My logging looks like this. I'm a bit of a webdev novice so I'm not sure if the "connections closing" or "TLS handshake errors" would be causing this problem, or how to resolve them. I've also tried both http and https for the redirect URL. The docs use http but I assume we actually want https.
Any help would be appreciated, thanks!