How to Debug Http of Ruby Google-Api-Client

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



Leave a reply



Submit