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

youtube_client.playlists.delete causes `NoMethodError: undefined method `[]' for nil`:NilClass` #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:

1. youtube_client.execute!(
      :api_method => youtube_discovered_cilent.playlists.delete, 
      :parameters => {:id => 'youtube_playlist_id'}
    )

2. returns 

NoMethodError: undefined method `[]' for nil:NilClass
    from /Users/me/.rvm/gems/ruby-1.9.2-p320@vidyard_dashboard/gems/google-api-      client-0.4.4/lib/google/api_client/result.rb:53:in `media_type'
    from /Users/me/.rvm/gems/ruby-1.9.2-p320@vidyard_dashboard/gems/google-api-client-0.4.4/lib/google/api_client/result.rb:57:in `data?'
    from /Users/me/.rvm/gems/ruby-1.9.2-p320@vidyard_dashboard/gems/google-api-client-0.4.4/lib/google/api_client.rb:775:in `execute!'

I have confirmed that the playlist will actually be destroyed, it's only 
erroring on the returned data from youtube.

I am running google-api-client version 0.4.4 on Mac OS X 10.8.3.

Original issue reported on code.google.com by codymwri...@gmail.com on 4 Apr 2013 at 3:37

GoogleCodeExporter commented 9 years ago

Original comment by sba...@google.com on 5 Apr 2013 at 8:26