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?
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
recoverySuggestionproperty that would be useful to know during development and possibly could be logged or shown in development mode. Example:amplify-js/packages/auth/src/errors/constants.ts
Lines 21 to 22 in e9276c4
In the FullAPI it lists only
erroras astringwhich contains only themessageof the error.It would be good if the API would also expose
recoverySuggestionand maybe even the entireErrorobject as also thenameand theunderlyingErrorcould be useful properties.Describe the solution you'd like
Have a new property additionally in the FullAPI, preferably
fullErrorthat contains the error object as is.Describe alternatives you've considered
It might be okay to just expose the
recoverySuggestion,nameandunderlyingErroras 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?