Skip to content

Discord webhook crashes on connection issues #2044

Description

@mentonin

As discussed in #2042, the webhook crashes when requests raises an exception other than requests.HTTPError

Expected behavior:

  1. requests raises an exception
  2. if safe to retry: log exception as warning and retry a limited amount of times
  3. if giving up (not safe to retry / max retries reached): log exception as error

Current behavior:
At a cursory examination, looks like it logs and gives up on requests.HTTPError, and crashes on other exceptions. In particular, #2042 introduced a timeout that may cause more frequent exceptions

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackendMost or all of the changes for this issue will be in the backend code.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions