snapcraft error message is not very helpful when using storeapi without being logged in
Metadata
Current evaluation
Improved the store API error shown when users were not logged in via ubuntu-core/snapcraft PR #408.
Resolution: closed resolved
Reason: The issue was resolved by ubuntu-core/snapcraft PR #408, linked in the 29 March 2016 maintainer discussion, which addressed the unhelpful unauthenticated store API failure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
If you try to build a kernel snap using the kernel snapcraft plugin, it will use the storeapi to download stuff.
If you did not previously logged in via "snapcraft login" you get this error:
yann@imperium:~/dev/snappy/1604/packages/paros_kernel$ snapcraft snap
Pulling kernel
'NoneType' object has no attribute 'headers'
Which is not very helpful about what's the issue.
A message giving the hint that maybe you need to do "snapcraft login" would be interesting I think.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Improved the store API error shown when users were not logged in via ubuntu-core/snapcraft PR #408. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/snapcraft#408 via commit 75f679482, replacing the opaque NoneType headers failure with a clear error for Store API downloads attempted without login. | |
| stealth/space-bunny-alpha | — | closed stale | Closed after about 10 years of inactivity, with no reported fix, resolving PR or commit, or maintainer explanation for the missing StoreAPI login guidance. | |
| stealth/space-bunny-alpha | — | closed stale | The request for clearer errors on unauthenticated store API use was closed without a recorded fix or explanation after roughly 10 years. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a recorded fix or replacement; the unauthenticated Store API login-hint request appears to have been abandoned after prolonged inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Unauthenticated storeapi usage caused an unhelpful NoneType error. The request for a clearer login hint was closed without comments or resolution, indicating it was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix or resolution documented. The unhelpful error message for unauthenticated storeapi calls remains unaddressed, likely abandoned due to inactivity. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#408
(confidence 99%)
Directly linked from the issue discussion as the change addressing the missing-login error message.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1622635 Cryptic error message for store access failure. | snapcraft (launchpad) | closed | Request for a clearer 401 error suggesting 'snapcraft login' was closed as unnecessary after PR canonical/snapcraft#903 (commit 603948e1d) removed the login requirement for Store part downloads, fixing LP #1606903. | |
| #1748802 `snapcraft login` authentication failure message could be friendlier | snapcraft (launchpad) | closed | Fixed by merged PR snapcore/snapcraft#1936 (commit 688588a0d), which made the store API surface server-supplied error text, so login failures now read "Authentication error: Failed to get unbound discharge: Provided email/password is not correct." |