google-cloud-ruby: Zlib::GzipFile::Error: not in gzip format
I’m trying to load a file in a google bigquery table, but when I execute:
bigquery = gcloud.bigquery
A receive a: Zlib::GzipFile::Error: not in gzip format
That it’s only fixed if I set:
Faraday.default_adapter = :net_http
Which it’s weird because everywhere is recommended to use :httpclient
as adapter, and it is what I’m using.
BTW, If I set the adapter to :net_http
then all works except the upload that generates the error:
Errno::EPIPE: Broken pipe
I’m lost… any help ?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 40 (23 by maintainers)
Commits related to this issue
- Remove Google API Client middleware The Google API Client adds a gzip middleware. This conflicts with the HTTPClient's transparent_gzip_decompression setting that was enabled in Faraday 0.9.2. Remove... — committed to blowmage/google-cloud-ruby by blowmage 9 years ago
- Update docs for Faraday/httpclient gzip change [refs #367] — committed to quartzmo/google-cloud-ruby by quartzmo 9 years ago
- Initial work on put_object implementation. Files upload. Requires httpclient as default adapter for Faraday as per https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/367 — committed to deanputney/fog-google by deanputney 9 years ago
I found something… by default when I instal the gem, the faraday version 0.9.2 is installed. But if I force the faraday version 0.9.1 it works fine