adobe / aio-cli-plugin-app

Create, Build and Deploy Cloud Native Applications
Apache License 2.0
19 stars 35 forks source link

Provide hint for Unauthorized (401) errors #747

Open bayrakta opened 7 months ago

bayrakta commented 7 months ago

Is your feature request related to a problem? Please describe. On a deploy command, started receiving the following error : ⠴ Getting Extension Points in Workspace=dev... › Error: [CoreConsoleAPISDK:ERROR_GET_WORKSPACE_ENDPOINTS] 401 - Unauthorized ({"error_code":"401013","message":"Oauth token is not valid"})

Describe the solution you'd like The proposed solution was using the command 'aio login --force'. It would be very beneficial for providing a hint message on this particular problem.

Describe alternatives you've considered Please add the following hint after the error message : Hint : You might try to force login with the command 'aio login --force'.

Additional context In case you decide to provide such an hint, it might be good to consider similar hint messages for the other known error types.

aiojbot commented 7 months ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-2635