Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: net/http: TLS handshake timeout

What is the problem you are having with rclone?

After opening the link to connect to google dirve, I get the success prompt but then I get this error

Got code
2020/04/22 17:25:28 Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: net/http: TLS handshake timeout

What is your rclone version (output from rclone version)

rclone v1.51.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 14.04

Which cloud storage system are you using? (eg Google Drive)

Google drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config

All default options

Log in and authorize rclone for access
Waiting for code...
Got code
2020/04/22 17:25:28 Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: net/http: TLS handshake timeout

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

hello and welcome to the forum,

have you tried to create a new config and test again?

This is probably a networking / firewall / proxy issue I'd say.

Is there a way to check that? I have other colleagues that have successfully connected to the google drive form our university, I don't know where there problem would be.

Try doing this from the command line - it should give the result shown

$ curl --data "" https://oauth2.googleapis.com/token
{
  "error": "unsupported_grant_type",
  "error_description": "Invalid grant_type: "
}

Do you need a proxy?

Hi, I had the same problem, I obtained a client id and use it, then it worked!
https://rclone.org/drive/#making-your-own-client-id

Also I used manual config.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.