Failure results in messy message leaking internals

Bug #1659861 reported by Mark Shuttleworth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Medium
Unassigned

Bug Description

When unable to install a snap:

$ sudo snap install --classic --beta conjure-up
error: cannot install "conjure-up": Get https://search.apps.ubuntu.com/api/v1/snaps/details/conjure-up?channel=beta&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement: read tcp 192.168.1.105:49516->162.213.33.200:443: read: connection reset by peer

While failures will occasionally happen, the measure of our quality is how gracefully we handle them.

In this case, it would be much nicer to see something like:

$ sudo snap install --classic --beta conjure-up
error: cannot install "conjure-up": connection reset by snap repository

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

Also 'conjure-up' not "conjure-up". Use double-quote for quoted speech and single quotes for a term or a name, as in this case.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'm marking this as confirmed since we still (as of snapd 2.27.2) show the full (ugly and long) URL we attempted to get when the network connection fails for some reason.

Changed in snapd:
status: New → Confirmed
assignee: nobody → John Lenton (chipaca)
Changed in snapd:
importance: Undecided → Medium
assignee: John Lenton (chipaca) → nobody
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.