charm-revision-updater doesn't handle non-JSON response content
Bug #1703615 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
It seems the charm store went offline for a period of time. It was returning a 503 Service Unavailable, but rather than handling the HTTP status code, the code assumes that all responses will be valid JSON and aborts because "<html>" isn't valid JSON.
machine-0: 17:57:39 ERROR juju.worker.
tags: |
added: charmhub removed: charm-store |
To post a comment you must log in.
Note also that ones the 'charm- revision- updater' gets this error, it fails the worker, which then bounces and restarts 1 second later, which fails in the same way.
We should treat 503 significantly more gracefully than we do.