ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

Batch request for youtube playlist_items.delete always failed #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. New a Google::APIClient::BatchRequest
2. add(:api_method=>yt.playlist_items.delete, :parameters => {:id => 
playlist_item_id})
3. execute it, and it will return that "Required parameter: id"

What is the expected output? What do you see instead?
if i use normal request(non batch), then the same code, same playlist_item_id 
will success, but if i use batch, it failed.

What version of the product are you using? On what operating system?
gem install google-api-client

Please provide any additional information below.

Original issue reported on code.google.com by xobkk...@gmail.com on 5 Feb 2013 at 4:23

GoogleCodeExporter commented 9 years ago
This is due to a bug in the Ruby client library in this line:

https://code.google.com/p/google-api-ruby-client/source/browse/lib/google/api_cl
ient/batch.rb#289

It should use #{Addressable::URI.parse(uri).request_uri}, but instead it uses 
#{Addressable::URI.parse(uri).path}

I've let the maintaing of the library know. You can manually patch your local 
copy of the library if you want to get things working right away.

Original comment by j...@posnick.org on 13 Feb 2013 at 6:23

GoogleCodeExporter commented 9 years ago
Wow!!!!
Thank you very much for this information!
Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!

Original comment by xobkk...@gmail.com on 14 Feb 2013 at 7:01

GoogleCodeExporter commented 9 years ago
Fixed in next release.

Original comment by sba...@google.com on 15 Feb 2013 at 9:15