-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messageable#send() sometimes silently fails #388
Comments
Hello! Thanks for the issue. If this is a general help question, for a faster response consider joining the official Discord Server Else if you have an issue with the library please wait for someone to help you here. |
How many channels is the bot in? Enabling logging.DEBUG will give you additional details such as 'sending messages too fast' or exceeding rate limit |
I didn't know about |
@chillymosh sorry, can you tell me how to set that |
twitchio uses the standard python alternatively, |
@IAmTomahawkx thank you 👍🏻 I've added this to my bot I'll come back soon when I have more information. Thank you! |
Here is an excerpt of some logs for a message that failed to send/show up in chat:
Here is a screenshot of the actual chat during this: Here is my code for sending messages. If However, in an effort to track down this bug, I actually log every single message that
|
Please let me know if you need any more logs or anything from me, I can provide the (gigantic) log file if need be. |
Looks like twitch dropped the message without response. Unfortunately not much the library can do. Even when they do provide an error message, there's no way to attribute it to which message was sent. |
I have a case where sending "/announcegreen something" in a channel fails because, after following the logging instructions above, |
This issue still happens pretty regularly on the latest version of TwitchIO (v2.8.2 as of the time of this writing). |
There's nothing we can do to inform you of messages being dropped, as twitch doesn't provide any actual state information that can be linked back to the specific message. Twitch is moving to an HTTP based message sending system, which will be able to provide such data. That system will be implemented in twitchio 3 once it's available. |
I've sometimes been seeing an issue where doing something like
will result in no message being sent to the Twitch channel in question.
And no exception is raised either, as in trying to solve this bug myself, I have my
send()
code wrapped in atry
/catch
, where I then loop to try again if sending the message failed.The text was updated successfully, but these errors were encountered: