Handle macaroon-authorization-required error response
Metadata
Current evaluation
snapcraft whoami shows a generic 'Store Error: whoami failed.' instead of prompting re-authentication when credentials are missing/expired (401 macaroon-authorization-required). Open since 2021, zero comments, no maintainer activity or labels.
Suggested action: needs triage
Reason: The issue has 0 comments, no labels, no assignee, and no maintainer response in ~5 years (last activity 1887 days ago), so it has never been triaged. It is a genuine bug with a full debug traceback (401 'macaroon-authorization-required' from the dashboard whoami endpoint), not a support question, and the underlying UX problem (generic error instead of re-auth prompt) is likely still relevant in the current craft-store-based implementation, so it should not be closed as stale without verification. Confidence is moderate because repo code inspection was unavailable (pinned SHA errors), so I could not confirm whether the 401 handling was already improved in the current snapcraft/store code.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
35
Quick Win:
21.0
Staleness:
95
Complexity:
40
Confidence:
65
Support Request:
10
|
needs triage | snapcraft whoami shows a generic 'Store Error: whoami failed.' instead of prompting re-authentication when credentials are missing/expired (401 macaroon-authorization-required). Open since 2021, zero comments, no maintainer activity or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
35
Confidence:
85
Support Request:
10
|
needs triage | snapcraft whoami fails with a generic error instead of prompting re-authentication when credentials are missing or expired. Open for over 5 years with no maintainer response or triage. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
15
|
close stale | Unhandled macaroon-authorization-required API error causes generic failure instead of re-auth prompt. Issue is over 5 years old with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Snapcraft fails with a generic error when credentials are missing or expired instead of prompting for re-authentication. Untriaged, inactive for over 5 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Reports a generic Store Error instead of prompting re-authentication when macaroon credentials are missing or expired. Unassessed for over five years. |
Update history
No update history recorded yet.
Related work
-
Related To:
craft-store#97
(confidence 70%)
craft-store#97 reports the same class of problem: confusing macaroon error on expired credentials instead of a re-login prompt; triaged there with Jira CRAFT-3385 but still open.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1834469 error messaging for invalid macaroon could be improved | snapcraft (launchpad) | open | Snapcraft shows a confusing 'missing a valid macaroon' error when the store macaroon expires; suggests guiding users to snapcraft login. 7 years old, no labels, no comments, no maintainer response. Related craft-store#97 tracks the same problem class. | |
| #97 Confusing error message on expired macaroon | craft-store | open | craft-store shows a confusing 'macaroon-permission-required' error when store credentials expire instead of telling users to re-login. Triaged by a maintainer with a Jira ticket (CRAFT-3385), but no code work; last activity ~11 months ago. | |
| #1856502 Obscure error message from snapcraft release when not logged in correctly | snapcraft (launchpad) | open | snapcraft release prints an obscure 401 macaroon error when not logged in; user suggests a friendlier message pointing to 'snapcraft login'. No labels, no comments, ~6.5 years inactive. Same problem class tracked in craft-store#97 and LP 1834469. | |
| #1674124 trying to push with the wrong macaroon return non user-friendly error | snapcraft (launchpad) | open | Snapcraft push with a macaroon attenuated to a different snap returns a raw 403 JSON blob instead of a user-friendly error. Opened by maintainer elopio ~9.4 years ago, zero comments, no labels beyond bitesize/store/ui, no recorded fix. | |
| #1745264 error message for expired macaroon is not helpful | snapcraft (launchpad) | closed | Closed without discussion or a formal fix. The report highlighted an unhelpful 401 error for an expired Travis CI macaroon during snap uploads, likely resolved by updating credentials or abandoned. | |
| #1843404 snapcraft export-login doesn't provide meaningful error messages when an argument is wrong | snapcraft (launchpad) | open | snapcraft export-login returns a generic 'Authentication error: Failed to get macaroon' instead of a meaningful message when an argument (e.g. snap name) is wrong. Unlabelled, zero comments, no maintainer interaction for ~7 years. |