Getting "400 Bad Request" and "invalid_grant" message with "Net::Google::Drive::Simple"
<p>I'm using <code>[Net::Google::Drive::Simple][1]</code> to fetch a document from the web and place it on my Google Drive. The script was working fine until I recently started getting the following error: <code>Token refresh failed at /usr/local/share/perl/5.20.2/OAuth/Cmdline.pm line 76</code>.</p>

<p>Printing out the headers from the response from Google shows the following:</p>

<pre><code>HTTP/1.1 400 Bad Request
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Connection: close
Date: Mon, 24 Oct 2016 08:32:13 GMT
Pragma: no-cache
Accept-Ranges: none
Server: GSE
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Alt-Svc: quic=":443"; ma=2592000; v="36,35,34"
Client-Date: Mon, 24 Oct 2016 08:32:13 GMT
Client-Peer: 2607:f8b0:4006:80e::200d:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=Google Inc/CN=Google Internet Authority G2
Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=accounts.google.com
Client-SSL-Cipher: ECDHE-RSA-AES128-SHA
Client-SSL-Socket-Class: IO::Socket::SSL
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block

{
  "error" : "invalid_grant"
}
</code></pre>