Skip to content

Show meaningful error details when API communication failure #31

@dreasvandonselaar

Description

@dreasvandonselaar

Whenever there are issues communicating with the controlpanel API, a generic error is returned:

Unable to communicate with the controlpanel API: CRITICAL

We need to ensure a more meaningful response is provided, e.g.:

  • "Unable to communicate with the controlpanel API: username/password invalid"
  • "Unable to communicate with the controlpanel API: WHM prospamfilter API token is missing"
  • "Unable to communicate with the controlpanel API: WHM prospamfilter API token is invalid"
  • "Unable to communicate with the controlpanel API: Unable to get a response from URL XXX"

Possibly there are more scenarios we should handle.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions