How do I debug HTTP of Ruby google-api-client
Google api client uses Faraday.default_connection
by default. It is thus possible to manipulate this object, which can be done simply with the following line of code:
Faraday.default_connection.response :logger
Took me a while to figure out.
Google Drive API returning 403 when trying to download file - no information about error given
It seems the downloadUrl is directly connected to the access token. By storing the downloadUrl with the first access to the file's metadata and using the same downloadUrl with a new access token, the API was returning a 403 error. By requesting a new downloadUrl everytime a new token is requested as well, it works perfectly.
Related Topics
Is There a Way in Ruby/Rails to Execute Code That Is in a String
How to Find the Source File for a Rake Task
Is Rails.Cache Purged Between Tests
Puppet/Facter "Could Not Retrieve Fact Fqdn": How to Fix or Circumvent
Rspec: How to Test File Operations and File Content
How to Disable Mongodb Log Messages in Console
What Does ':Location => ...' and 'Head :Ok' Mean in the 'Respond_To' Format Statement
Ruby: Create a String from Bytes
Ruby Classes Within Classes (Or Modules Within Modules)
Jekyll on Windows: Pygments Not Working
Why Is Safe Navigation Better Than Using Try in Rails
How to Suppress the Output of Return Value in Irb/Rails Console
Rails 3 - Restricting Formats for Action in Resource Routes
What Is the Use of "#!/Usr/Local/Bin/Ruby -W" at the Start of a Ruby Program
Rails Rbenv: Rails: Command Not Found
How to Change the Position of an Array Element
Are There Good Reasons for 'Private' to Work the Way It Does in Ruby