Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Improve error message for Reddit errors #185

Description

@TimJentzsch

Some commands, such as /rules and /pirules need to contact the Reddit API.
Unfortunately, this sometimes errors, e.g. a 400 response code for some reason.

The user in this case gets a very generic response:

[2aeae1ac-d993-4f6e-819b-cfd859999f95] Something went wrong, please contact a moderator with the provided ID.

Instead, the user should be notified that the Reddit API seems to have issues and that they should try again in a couple of minutes.

Activity

  1. itsthejoker commented on Jul 15, 2022

    @itsthejoker
    Member

    Is it always a 100% guarantee that a 400 error is on reddit's side?

  2. TimJentzsch commented on Jul 15, 2022

    @TimJentzsch
    ContributorAuthor

    Probably not, 400 means bad request so that's already the wrong response code lol.

    Ideally we'd add a global handler like we have have for Discord errors and such, but for PRAW errors.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions