Closed ZaneH closed 1 year ago
I think the error came from trying get_message()
without logging in.
I added:
twitch_client = pytmi.Client(use_ssl=False)
async def get_message_loop():
while not twitch_client.joined:
await twitch_client.login_anonymous()
await twitch_client.join(channel)
...
a simple check for .joined
and it seems to work nicely with the existing loop. I didn't need to change anything else.
Hello, the part
method is used for leaving a channel (that you previously joined with join
).
Anyway, the error you got seems to be a spurious error resulting from a connection error.
Sometimes I also get a similar error, I'll try to figure out a way to fix it hopefully.
I'm facing an issue that only occurs after the first connection with
pytmi
. I see:Unknown exception 0 bytes read on a total of undefined expected bytes
in my console on subsequent requests. My run loop generally looks like this:
I'm looking for a method to close my connections properly. I saw
part
in the example code near the end. Will that be helpful for resolving this?I'm not sure if these are relevant but I see these as well: