abronte / BigQuery

A BigQuery wrapper
86 stars 58 forks source link

Record VCR #46

Open thadeubrito opened 8 years ago

thadeubrito commented 8 years ago

Hey guys,

I'm having problem to record bigquery's response on the VCR. The problem using the BigQuery gem is in the response body the attribute string is empty and MultiJson can not parse it

MultiJson::ParseError:
  JSON::ParserError

response:

...
"body":{  
  "encoding":"UTF-8",
  "string":""
},
...

Testing others gem options to bigquery(gcloud), I could record the VCR but I can't read it, I had it:

Zlib::GzipFile::Error:
  not in gzip format

The curious fact is: 1 - I recorded the VCR using the gcloud gem 2 - I switch to use the bigquery gem, and the bigquery gem can read the VCR recorded by gcloud

It is not a great flow to work : ) because of that I'm here to try some help.

Environment: Ruby 2.1.5p273 Bigquery: 0.9.0

abronte commented 8 years ago

Have you tried master instead of the gem? I've never actually used VCR so I'm not too familiar with your issue.