Google Drive - Waiting for code

Hi,

I’m attempting to create a new google drive remote but get stuck at “Waiting for code…”

I’m using v1.39 on Windows 7. It’s not headless so I’m using auto-config, it opens the browser as expected, I login and it even displays the code to copy, but rclone just sits at “Waiting for code…”

I also tried by not using auto-config and just copying in the code Google provides, but rclone gives an error saying “Failed to configure token: invalid character ‘/’ after top-level value.”

Any suggestions?

Thank you!

–With auto-config
>rclone config
Current remotes:

Name                 Type
====                 ====
acd                  amazon cloud drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> gd
Type of storage to configure.
Choose a number from below, or type in your own value
 1 / Amazon Drive
   \ "amazon cloud drive"
 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
   \ "s3"
 3 / Backblaze B2
   \ "b2"
 4 / Box
   \ "box"
 5 / Cache a remote
   \ "cache"
 6 / Dropbox
   \ "dropbox"
 7 / Encrypt/Decrypt a remote
   \ "crypt"
 8 / FTP Connection
   \ "ftp"
 9 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
10 / Google Drive
   \ "drive"
11 / Hubic
   \ "hubic"
12 / Local Disk
   \ "local"
13 / Microsoft Azure Blob Storage
   \ "azureblob"
14 / Microsoft OneDrive
   \ "onedrive"
15 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
16 / Pcloud
   \ "pcloud"
17 / QingCloud Object Storage
   \ "qingstor"
18 / SSH/SFTP Connection
   \ "sftp"
19 / Webdav
   \ "webdav"
20 / Yandex Disk
   \ "yandex"
21 / http Connection
   \ "http"
Storage> 10
Google Application Client Id - leave blank normally.
client_id>
Google Application Client Secret - leave blank normally.
client_secret>
Service Account Credentials JSON file path - needed only if you want use SA inst
ead of interactive login.
service_account_file>
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.
0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...

—Without auto-config
>rclone config
Current remotes:

Name                 Type
====                 ====
acd                  amazon cloud drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> gd
Type of storage to configure.
Choose a number from below, or type in your own value
 1 / Amazon Drive
   \ "amazon cloud drive"
 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
   \ "s3"
 3 / Backblaze B2
   \ "b2"
 4 / Box
   \ "box"
 5 / Cache a remote
   \ "cache"
 6 / Dropbox
   \ "dropbox"
 7 / Encrypt/Decrypt a remote
   \ "crypt"
 8 / FTP Connection
   \ "ftp"
 9 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
10 / Google Drive
   \ "drive"
11 / Hubic
   \ "hubic"
12 / Local Disk
   \ "local"
13 / Microsoft Azure Blob Storage
   \ "azureblob"
14 / Microsoft OneDrive
   \ "onedrive"
15 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
16 / Pcloud
   \ "pcloud"
17 / QingCloud Object Storage
   \ "qingstor"
18 / SSH/SFTP Connection
   \ "sftp"
19 / Webdav
   \ "webdav"
20 / Yandex Disk
   \ "yandex"
21 / http Connection
   \ "http"
Storage> 10
Google Application Client Id - leave blank normally.
client_id>
Google Application Client Secret - leave blank normally.
client_secret>
Service Account Credentials JSON file path - needed only if you want use SA inst
ead of interactive login.
service_account_file>
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> n
For this to work, you will need rclone available on a machine that has a web bro
wser available.
Execute the following on your machine:
        rclone authorize "drive"
Then paste the result below:
result> 4/iiIFx1gz____________________________________
2018/01/17 19:43:45 Failed to configure token: invalid character '/' after top-l
evel value

It shouldn’t be showing you a code to copy, it should have done the proper oauth workflow and sent it to rclone directly.

I just tested it and it does the same thing for me…

Can you please make a new issue on github about this and I’ll post a beta there for you to try once I’ve worked out what is going on!

Google have obviously changed something - maybe they will fix it, or maybe I’ll have to fix rclone - not sure yet!

Don’t bother making an issue - I figured out the problem! It was a bit of code re-organisation I did which broke it. Should be fixed here

https://beta.rclone.org/v1.39-036-g2030dc13/ (uploaded in 15-30 mins)

I think you must be using the Beta BTW - it works on on v1.39 in my tests.

Thank you @ncw for your quick response and fix!! I’ll give it a try in a little bit and let you know if I have any problems.

Thanks again!!

I was able to setup “drive” using v1.39-036-g2030dc13, thank you!!!

And you are right, I was previously using the beta (pulled from rclone-beta-latest-windows-amd64).

Again, thank you so much for your quick reply and fix @ncw!!!

1 Like