'snapcraft push' dies with traceback if credentials are invalid

Bug #1758859 reported by Romain Janvier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Medium
Unassigned

Bug Description

Hello,

We are using travis to build and upload snap package for CloudCompare (https://github.com/CloudCompare/CloudCompare)

the last step fail with an UnicodeDecodeError. I don't know if it's specific to our setup or a bug in snapcraft.

here is the full raw travis log https://api.travis-ci.org/v3/job/358151797/log.txt

the used .travis.yml file
https://github.com/CloudCompare/CloudCompare/blob/beta_builds_debug/.travis.yml

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Hey Romain, thanks for the bug report!

Looking at the traceback, it looks like there's something wrong with the .snapcraft/snapcraft.cfg that you decode that's causing the UTF-8 errors. That .travis.yml file looks a tad odd... can you explain why you're attempting to decode the same file twice, with what looks like different passwords?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Romain Janvier (romain-janvier) wrote :

Yes that was indeed the culprit. I messed this up when I refreshed my credentials. Thanks Kyle and sorry for taking your time.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Oh no problem at all! We need to handle that error better, so we definitely appreciate the bug :) .

Changed in snapcraft:
status: Incomplete → Triaged
summary: - snapcraft push fail with UnicodeDecodeError: 'utf-8' on travis
+ 'snapcraft push' dies with traceback if credentials are invalid
Kyle Fazzari (kyrofa)
Changed in snapcraft:
importance: Undecided → Medium
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.