bytechef icon indicating copy to clipboard operation
bytechef copied to clipboard

[task] Improve Error Message Experience

Open igorbeslic opened this issue 1 year ago • 0 comments

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:

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"
}

igorbeslic avatar May 07 '24 15:05 igorbeslic