error messaging for invalid macaroon could be improved

Bug #1834469 reported by Jamie Strandboge
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Chris Patterson

Bug Description

Today I went to use 'snapcraft list-revisions' and was greeted with:

$ snapcraft list-revisions snappy-debug
Error fetching account information from store: The request is missing an Authorization header field containing a valid macaroon
[2]

I tried other snaps I own and they were all the same. Googling didn't help me and the error message made me think something was wrong with the store. It then occurred to me that perhaps the macaroon expired, so I did 'snapcraft login' and everything started working again. Assuming the issue was actually that the macaroon expired and I did the right thing instead of working around the problem, I suspect the error message could be improved to guide people to snapcraft login.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

I too am still seeing this when trying to push a snap.

Received:
- macaroon-authorization-required: The request is missing an Authorization header field containing a valid macaroon

Chris Patterson (cjp256)
Changed in snapcraft:
assignee: nobody → Chris Patterson (cjp256)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

FYI, I guess the macaroon from January expired and I was greeted with the same message only to find my google search showing the bug I filed. :)

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

> I suspect the error message could be improved to guide people to snapcraft login.

I had to 'snapcraft logout' and 'snapcraft login' because the latter said "Cannot login with existing legacy credentials in use".

By the way, 'macaroon' is kinda funny in a error message. (:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.