adobe / adobe/aio-cli-plugin-app

Provide hint for Unauthorized (401) errors

Open
#747 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
28
Forks
41
Avg merge
1d 2h
Merged PRs (30d)
3

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.