Amazon drive auto config not working, error 400

What is the problem you are having with rclone?

When trying to use auto config for an amazon drive I get an error from amazon about missing client_id

Run the command 'rclone version' and share the full output of the command.

rclone v1.58.1

  • os/version: Microsoft Windows 10 Education 21H2 (64 bit)
  • os/kernel: 10.0.19044.1806 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: dynamic
  • go/tags: cmount

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

Amazon drive

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

rclone config

The rclone config contents with secrets removed.

Not relevant

A log from the command with the -vv flag

Storage> 4
2022/07/05 16:37:52 DEBUG : AmazonDrive: config in: state="*all", result=""
2022/07/05 16:37:52 DEBUG : AmazonDrive: config out: out=&{State:*all-set,0,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:37:52 DEBUG : AmazonDrive: config: reading config parameter "client_id"
Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>
2022/07/05 16:38:03 DEBUG : AmazonDrive: config in: state="*all-set,0,false", result=""
2022/07/05 16:38:03 DEBUG : AmazonDrive: config out: out=&{State:*all,1,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:03 DEBUG : AmazonDrive: config in: state="*all,1,false", result=""
2022/07/05 16:38:03 DEBUG : AmazonDrive: config out: out=&{State:*all-set,1,false Option: OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:03 DEBUG : AmazonDrive: config: reading config parameter "client_secret"
Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all-set,1,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,2,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,2,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,3,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,3,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,4,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,4,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,5,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,5,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,6,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,6,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,7,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,7,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,8,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,8,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all,9,false Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config in: state="*all,9,false", result=""
2022/07/05 16:38:04 DEBUG : AmazonDrive: config out: out=&{State:*all-advanced Option:false OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:04 DEBUG : AmazonDrive: config: reading config parameter "config_fs_advanced"
Edit advanced config?
y) Yes
n) No (default)
y/n>
2022/07/05 16:38:06 DEBUG : AmazonDrive: config in: state="*all-advanced", result="false"
2022/07/05 16:38:06 DEBUG : AmazonDrive: config out: out=&{State:*postconfig Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:06 DEBUG : AmazonDrive: config in: state="*postconfig", result=""
2022/07/05 16:38:06 DEBUG : AmazonDrive: config in: state="", result=""
2022/07/05 16:38:06 DEBUG : AmazonDrive: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:06 DEBUG : AmazonDrive: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:06 DEBUG : AmazonDrive: config in: state="*oauth,,,", result=""
2022/07/05 16:38:06 DEBUG : AmazonDrive: config out: out=&{State:*oauth-confirm,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:06 DEBUG : AmazonDrive: config in: state="*oauth-confirm,,,", result=""
2022/07/05 16:38:06 DEBUG : AmazonDrive: config out: out=&{State:*oauth-islocal,,, Option:true OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:06 DEBUG : AmazonDrive: config: reading config parameter "config_is_local"
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine

y) Yes (default)
n) No
y/n>
2022/07/05 16:38:07 DEBUG : AmazonDrive: config in: state="*oauth-islocal,,,", result="true"
2022/07/05 16:38:07 DEBUG : AmazonDrive: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2022/07/05 16:38:07 DEBUG : AmazonDrive: config in: state="*oauth-do,,,", result=""
2022/07/05 16:38:07 DEBUG : Starting auth server on 127.0.0.1:53682
2022/07/05 16:38:07 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=VCtMFTI3Em6__AjBUlu2NA
2022/07/05 16:38:07 NOTICE: Log in and authorize rclone for access
2022/07/05 16:38:07 NOTICE: Waiting for code...
2022/07/05 16:38:08 DEBUG : Redirecting browser to: https://www.amazon.com/ap/oa?access_type=offline&client_id=&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&scope=clouddrive%3Aread_all+clouddrive%3Awrite&state=VCtMFTI3Em6__AjBUlu2NA

Here is the image from the login site:
amazon_bug

Nevermind, just found out it no longer works Amazon Drive.

hello and welcome to the forum,

as per the rclone docs
before creating a remote for amazon drive, need to have client_id and client_secret

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