Skip to content

Refactor http.service.ts error handling #3055

Description

@bastianjoel

Currently the http.service.ts tries to handle certain backend errors by itself and returns null if it does so.

This is bad because the caller will not be notified properly that a request failed and lacks information about the reasons for that. In case of a password reset which returns null on success it is completely impossible for the caller to determine if the request was successful.

While I think that it is okay to display a snackbar on fail we should change the following things here:

  1. Always throw if an error occurred with all information about the response
  2. Option to disable opening a snackbar on error

Especially 1. needs testing and maybe some considerations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions