Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-158

Linode driver doesn't decode compressed responses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.1
    • Compute
    • None

    Description

      After upgrade from 0.7.1 to 0.8.0 calls to the Linode API fail with a MalformedResponseError (Failed to parse JSON). Changes to base.Connection.request() send correct Accept-Encoding headers (making Linode API return compressed data), but common.linode.LinodeResponse overrides common.base.Response._init_() in which _decompress_response() is called - the response body is never decompressed and fails to json.loads() in common.base.JsonResponse.

      Attachments

        1. issue158.patch
          0.9 kB
          Ben Agricola

        Activity

          People

            Unassigned Unassigned
            ben.agricola Ben Agricola
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: