Skip to content

Reading the exact error the browser reports #411

Open
@ghost

Description

When using the API, I catch - obviously - errors with .catch(error).

The problem is that while in the browser I see a specific error message, catch reports a more generic error.

E.g: if I get in Chrome "request has been blocked by CORS policy", with catch I get "Request has been terminated, Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.".

Is there a way to read the specific error message from catch, i.e. from the error the API reports?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions