nerd icon indicating copy to clipboard operation
nerd copied to clipboard

Difficult to understand message when something's up with the OAuth token

Open alexanderweiss opened this issue 6 years ago • 0 comments

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

  1. Mess with your OAuth token (I think)
  2. Try to do/upload something

Specifications

  • Version (using nerd version):
  • Platform: macOS
  • Subsystem:

Anything else we need to know?

alexanderweiss avatar Feb 27 '18 11:02 alexanderweiss