bytechefhq / bytechefhq/bytechef
[task] Improve Error Message Experience
- Dominant language
- Java
- Stars
- 1k
- Forks
- 170
- Avg merge
- 11h 25m
- Merged PRs (30d)
- 115
Description
OAuth Errors - 401 Unauthhorised after token Expiration might be designed in a friendly manner:
Token has expired (or something like, Unable to authorize request to remote endpoint TIP: If you rely on OAuth20 check if token expired
Also give ability to see details.
Original react js captured message structure:
```javascript
401 Unauthorized
GET https://sheets.googleapis.com/v4/spreadsheets/1zEHLg0yxHzh0vmBU43JieE0t_XBNNSgrxv4IWBsRvzI
{
"code": 401,
"errors": [
{
"domain": "global",
"location": "Authorization",
"locationType": "header",
"message": "Invalid Credentials",
"reason": "authError"
}
],
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
```
Contributor guide
Assessment
This issue has not been assessed yet.