Skip to content

SuggestionsUpDownVoter should have UNKNOWN_MESSAGE exception gracefully with an INFO log instead #1414

Description

@ankitsmt211

Describe the bug

Let's say a spam bot or a scammer posted a message in suggestions channel.

Both ScamBlocker and SuggestionsUpDownvoter tries to react to that event.

ScamBlocker deletes the message, SuggestionsUpDownvoter tries to create a thread on a deleted message so it throws ErrorResponseException [10008] with error type as UNKNOWN_MESSAGE.

This spams log with random error messages for expected behaviour. So basically a noise for for error logs. You see a random exception for something that absolutely makes sense.

Expected behavior

Explicitly handle this exception only for already deleted messages and simply do an INFO log.

To Reproduce

Post a scam like message in suggestions channel

Screenshots

Additional context

https://discord.com/channels/272761734820003841/1027495556748157038/1471254656024842291

https://discord.com/channels/272761734820003841/1027495556748157038/1471254656024842291

https://discord.com/channels/272761734820003841/1027495556748157038/1471254656024842291

Activity

  1. added theissue type on Feb 12, 2026
  2. Bryce72 commented on Feb 12, 2026

    @Bryce72
    Contributor

    Hi, I'd like to work on this issue. Can you assign it to me?

  3. changed the title [-]SuggestionsUpDownBoter should have UNKNOWN_MESSAGE exception gracefully with an INFO log instead[/-] [+]SuggestionsUpDownVoter should have UNKNOWN_MESSAGE exception gracefully with an INFO log instead[/+] on Feb 12, 2026
  4. christolis commented on Feb 12, 2026

    @christolis
    Member

    SB deletes the message, SUD tries to create a thread on a deleted message so it throws ErrorResponseException [10008] with error type as UNKNOWN_MESSAGE.

    Could you clarify what "SB" and "SUD" mean? I am not sure I am following.

  5. ankitsmt211 commented on Feb 12, 2026

    @ankitsmt211
    MemberAuthor

    SB deletes the message, SUD tries to create a thread on a deleted message so it throws ErrorResponseException [10008] with error type as UNKNOWN_MESSAGE.

    Could you clarify what "SB" and "SUD" mean? I am not sure I am following.

    was on phone, used as short forms updated description now.

  6. Bryce72 commented on Feb 12, 2026

    @Bryce72
    Contributor

    can you give an example of the scam message you used? tried to reproduce this but cant catch it.

  7. ankitsmt211 commented on Feb 12, 2026

    @ankitsmt211
    MemberAuthor

    can you give an example of the scam message you used? tried to reproduce this but cant catch it.

    Try "free steam $10 gift card"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions