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

Most upvoted comments

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