BigQuery icon indicating copy to clipboard operation
BigQuery copied to clipboard

Record VCR

Open thadeubrito opened this issue 9 years ago • 1 comments

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

thadeubrito avatar Jun 14 '16 18:06 thadeubrito

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

abronte avatar Jun 15 '16 20:06 abronte