Revision history [back]
I've just had exactly the same issue. In my case, the server was also using a proxy to access the internet, and it had been set up for http, not https.
The OAuth request to google requires https - so as soon as I copied the value of my http_proxy
environment variable to https_proxy
, it worked.
Assuming you're running the server on linux, you can copy the environment variable like so:
export https_proxy=$http_proxy