failed to unmarshall 503 charmstore

Bug #1461954 reported by Aaron Bentley
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned
juju-core
Won't Fix
Low
Unassigned
juju-quickstart
Invalid
Undecided
Unassigned

Bug Description

When the charm store returns a 503, the body may be html, but juju doesn't handle that:

http://reports.vapour.ws/releases/issue/557054b9749a5645b033edd5

Revision history for this message
Francesco Banconi (frankban) wrote :

Quickstart is just reporting an error from juju-core.
For instance:
"juju-quickstart: error: bad API response: cannot retrieve charm "cs:trusty/juju-gui-21": cannot get archive: cannot unmarshal error response "<html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>\n": invalid character '<' looking for beginning of value"
The message above, starting from "cannot retrieve charm...", is the error returned by the ServiceDeploy API call to juju-core.
I don't think we can do much more in such cases, therefore marking as invalid.

Changed in juju-quickstart:
status: New → Invalid
Revision history for this message
Richard Harding (rharding) wrote :

Francesco, can we find/update the api response to send json back though? I'm guessing the html response is from the charmstore web service? If it sends back something parseable like we try to do with most things, we'd be able to give the user a clean a message from that body back?

Revision history for this message
Francesco Banconi (frankban) wrote :

Hey Rick, that seems to me a response from haproxy, and an error generated in a hopefully very exceptional case.
IIRC all the errors returned from the charm store itself are already formatted as JSON.

Aaron Bentley (abentley)
description: updated
Changed in juju-core:
status: New → Triaged
importance: Undecided → Low
Curtis Hovey (sinzui)
description: updated
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
summary: - failed to unmarshall 503
+ failed to unmarshall 503 charmstore
Changed in juju-core:
status: Triaged → Won't Fix
Changed in juju:
milestone: none → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.