Juju parsing of retry header doesn't take into account date format

Bug #1728725 reported by Christopher Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Heather Lanigan

Bug Description

For rackspace we're seeing this error:
  caused by: strconv.ParseFloat: parsing "Mon, 30 Oct 2017 14:53:27 GMT": invalid syntax

This is due to the assumption that the header is always a duration of seconds, and not the other supported format of a date (as per https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After).

Tags: ci
Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
status: New → In Progress
Changed in juju:
importance: Undecided → High
Revision history for this message
Heather Lanigan (hmlanigan) wrote :
Revision history for this message
Heather Lanigan (hmlanigan) wrote :
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.