upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

up login with invalid credentials return "unable to parse session cookie" message #281

Open jeringk opened 1 year ago

jeringk commented 1 year ago

What happened?

I tried to login using up with invalid credentials and got below error.

./up login
Username: <username>
Password: <wrong password>
up: error: unable to login: unable to parse session cookie: {"message":"Unauthorized"}

Even though up says its unable to login, the message unable to parse session cookie feels like a bug in cli.

Expected Behaviour:

./up login
Username: <username>
Password: <wrong password>
up: error: unable to login: {"message":"Unauthorized"}

Epic #

How can we reproduce it?

Mentioned in What Happened

What environment did it happen in?

hasheddan commented 1 year ago

Thanks for this report @jeringk! Agree this error message is not helpful to the user and should be updated 👍🏻