Skip to content

Expose more error properties such as recoverySuggestion #14783

@jiw-mh

Description

@jiw-mh

Is this related to a new or existing framework?

Not sure.

Is this related to a new or existing API?

Authentication

Is this related to another service?

Not sure.

Describe the feature you'd like to request

As far as I can tell all errors are supplied with a recoverySuggestion property that would be useful to know during development and possibly could be logged or shown in development mode. Example:

recoverySuggestion:
'Please make sure the signIn/Out redirect in your oauth config is valid.',

In the FullAPI it lists only error as a string which contains only the message of the error.

It would be good if the API would also expose recoverySuggestion and maybe even the entire Error object as also the name and the underlyingError could be useful properties.

Describe the solution you'd like

Have a new property additionally in the FullAPI, preferably fullError that contains the error object as is.

Describe alternatives you've considered

It might be okay to just expose the recoverySuggestion, name and underlyingError as separate properties.

Additional context

I ran into this problem while running into a caching issue. It was very hard for me to find out a solution without the resolutionSuggestion.

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    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