nerd
nerd copied to clipboard
Difficult to understand message when something's up with the OAuth token
Tried to upload a dataset. Got this (OAuth token issue):
$ nerd dataset upload /Users/alexander/Downloads/y
error: failed to create transfer handle: failed to create dataset resource: Post https://185.167.252.7:6443/apis/stable.nerdalize.com/v1/namespaces/nerdalize-cloud/datasets: failed to refresh token: oauth2: cannot fetch token: 400 Bad Request
Response: {"error_description": "The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client", "error": "invalid_grant"}
Expected Behavior
Nice message that I should try logging in again.
Actual Behavior
Really difficult to understand message.
Steps to Reproduce the Problem
- Mess with your OAuth token (I think)
- Try to do/upload something
Specifications
- Version (using
nerd version
): - Platform: macOS
- Subsystem: