-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
Forbidden: 403 Forbidden (error code: 90001): Reaction blocked #2486
Comments
Can reproduce by
The bot tries to add the redo emoji but it can't because it's blocked. There are probably other cases in the bot with this issue. Not sure if there are any other actions that can fail due to being blocked. |
Honestly I wonder if we should bother addressing it. It's a very unlikely scenario chosen by the user, we could technically just ignore this |
Since it causes an error I think it's worth handling. It causes a message to be sent in the channel saying that it's unexpected behaviour and to let us know, and sends a sentry alert, neither of which are ideal. The handling should be simple, possibly just exiting the function if the error is raised. |
Hmm yeah the message is an issue. The alert can be suppressed |
Would checking the If we're concerned about it suppressing other things we can always ensure we create a log message as part of the handling. |
Were you thinking this would go in the global error handler? That sounds good to me. I can't think of another reason the reactions should be blocked so as long as there's an info log or custom message as you say I think it would be fine. |
Yeah, that was the idea. If we're happy with this implementation then can I please be assigned? |
Actually, thinking further on this, I suppose this is also an issue in sir-lancebot, right? I've checked locally and, as an example, the easter/halloween/etc. reactions to keywords have the same issue, so we'd presumably need handling there, which makes me think maybe this should be somewhere in bot-core to prevent duplication across the two bot repos? Although I don't think bot-core currently has a global error handling system (if that's even possible). Tl;Dr; should this be PRd to both bots separately, or to bot-core in some shape? |
The entire error handler could be migrated over to botcore, which would be the best way of doing that. I was planning on doing that at some point after #2439 and #2436 are merged. If it's added to bot now it'll be copied across in the migration, which would be fine. We could wait for it to be in botcore to add to lancebot since this is a low priority issue. I don't really mind. |
I'd be happy to PR for both bot and sir-lancebot now, since it's a small and easy fix, and then it can be unified into a global handler in bot-core as part of the migration whenever that happens. EDIT: Turns out it was actually more complex than I expected (see #2580), so will just leave it on bot for now. It can be added to lancebot when the handler is migrated to botcore. |
Now that #2580 and python-discord/bot-core#177 is merged, is this issue still relevant, or are we still encountering it? |
Ah yeah, I think this can be closed now. |
Sentry Issue: BOT-3EZ
The text was updated successfully, but these errors were encountered: