snapcraft error message is not very helpful when using storeapi without being logged in

Bug #1560553 reported by Yann Sionneau
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Sergio Schvezov

Bug Description

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.

Changed in snapcraft:
milestone: none → 2.6
assignee: nobody → Sergio Schvezov (sergiusens)
importance: Undecided → Medium
Kyle Fazzari (kyrofa)
Changed in snapcraft:
milestone: 2.6 → none
Changed in snapcraft:
milestone: none → 2.7
status: New → Confirmed
status: Confirmed → Triaged
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: Triaged → In Progress
Revision history for this message
John McAleely (john.mcaleely) wrote :

surely this is higher than medium, if everyone trying this out will tumble over it?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

It was/is medium because it is just an error message and has a known workaround.

Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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