NameError: uninitialized constant Faraday :: FlatParamsEncoder

I use gogle google_drive, which depends on google-api-client and gem versions:

google_drive (1.0.1) google-api-client (0.7.1) faraday (0.8.9) faraday_middleware (0.9.0) 

Now using GoogleDrive:

 session = GoogleDrive.login_with_oauth('access_token') 

I get the following exception:

 NameError: uninitialized constant Faraday::FlatParamsEncoder from /Users/Admin/.rvm/gems/ ruby-1.9.3-p551@ ############/gems/google-api-client-0.7.1/lib/google/api_client.rb:118:in `block in initialize' 

Check the code for the google-api-client version that I am using here:

https://github.com/google/google-api-ruby-client/blob/google-api-client-0.7.1/lib/google/api_client.rb

Could not find anything unusual. Any help would be appreciated. Thanks

+5
source share

All Articles