OneDrive Account Creation Fails - Error + Log

What is the problem you are having with rclone?

I have a user who is unable to create a OneDrive account.
The log shows two errors ( log attached )
I need to understand what these errors mean and what we can do resolve the user's situation.

They are able to successfully create accounts with GDrive and DropBox
Issue appears to be limited to OneDrive

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

rclone v1.61.1

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

OneDrive

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

rclone config create AddTestAccontName onedrive --log-file="C:\rclone_log.txt" --log-level DEBUG

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

I will ask the user for this.

A log from the command that you were trying to run with the -vv flag


Conversation opened. 3 messages. 1 message unread.

Skip to content
Using IDERA Mail with screen readers

5 of 2,699
UCS hang
Inbox

Victor Porutchikov
Jan 22, 2024, 5:16 AM (1 day ago)
Hello Eric, I worked on UCS hang problem more and found that UCS endlessly calls result = Curl_readwrite(data->conn, data, &done, &comeback); in multi.c --> sta

Eric Stegemoller
Jan 22, 2024, 8:29 PM (13 hours ago)
Hello Victor, Following our conversation today I looked over some diagnostics we could run. I think we should try taking curl out of the experiment and run rclo

Victor Porutchikov
Attachments
6:03 AM (3 hours ago)
to me

Hello Eric,

On 23.01.2024 3:29, Eric Stegemoller wrote:
Hello Victor,

Following our conversation today I looked over some diagnostics we could run.

I think we should try taking curl out of the experiment and run rclone from the command line with logging.

If you run a command prompt as admin, you can launch rclone with the following command line to attempt to  create a one drive account and log the result:

C:\Program Files\IDM Computer Solutions\Common\UltraCloudStorage>rclone config create AddTestAccontName onedrive --log-file="C:\Program Files\IDM Computer Solutions\Common\UltraCloudStorage\rclone_log.txt" --log-level DEBUG

If it fails it should give us some output to investigate.
If it succeeds then when will learn that curl is a critical factor and will need to pursue that.
Log in attachment.
 One attachment
  •  Scanned by Gmail

Victor Porutchikov (ultraedit.com), Bradley Hawkins (ultraedit.com)

Hello Victor,

Ok I see it had errors.

First one looks like it happened during the authorization with OneDrive:
2024/01/23 13:01:25 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection

After that it did create an account entry in rclone's :"config". But when it tries to query the account for the drive root on the OneDrive account it repeatedly gets this error:
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:28\",\"request-id\":\"e974cf08-c3e4-4bd7-9185-b2f3e019fa75\",\"client-request-id\":\"e974cf08-c3e4-4bd7-9185-b2f3e019fa75\"}}}" Result:}, err=<nil>




2024/01/23 13:01:23 DEBUG : rclone: Version "v1.61.1" starting with parameters ["C:\\Program Files\\IDM Computer Solutions\\Common\\UltraCloudStorage\\rclone" "config" "create" "AddTestAccontName" "onedrive" "--log-file=C:\\Program Files\\IDM Computer Solutions\\Common\\UltraCloudStorage\\rclone_log.txt" "--log-level" "DEBUG"]
2024/01/23 13:01:23 DEBUG : Using config file from "C:\\Users\\Victor\\AppData\\Roaming\\rclone\\rclone.conf"
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config in: state="", result=""
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config out: out=&{State:*oauth,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config in: state="*oauth,choose_type,,", result=""
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config out: out=&{State:*oauth-confirm,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config in: state="*oauth-confirm,choose_type,,", result=""
2024/01/23 13:01:23 DEBUG : Auto confirm is set, choosing default "true" for state "*oauth-islocal,choose_type,,", override by setting config parameter "config_is_local"
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config out: out=&{State:*oauth-islocal,choose_type,, Option:<nil> OAuth:<nil> Error: Result:true}, err=<nil>
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config in: state="*oauth-islocal,choose_type,,", result="true"
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config out: out=&{State:*oauth-do,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:23 DEBUG : AddTestAccontName: config in: state="*oauth-do,choose_type,,", result=""
2024/01/23 13:01:23 DEBUG : Starting auth server on 127.0.0.1:53682
2024/01/23 13:01:23 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=9i_QvNIhXzTWA8WmIYl77w
2024/01/23 13:01:23 NOTICE: Log in and authorize rclone for access
2024/01/23 13:01:23 NOTICE: Waiting for code...
2024/01/23 13:01:23 DEBUG : Redirecting browser to: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?access_type=offline&client_id=b15665d9-eda6-4092-8539-0eec376afd59&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=Files.Read+Files.ReadWrite+Files.Read.All+Files.ReadWrite.All+Sites.Read.All+offline_access&state=9i_QvNIhXzTWA8WmIYl77w
2024/01/23 13:01:25 DEBUG : Received GET request on auth server to "/"
2024/01/23 13:01:25 NOTICE: Got code
2024/01/23 13:01:25 DEBUG : Closing auth server
2024/01/23 13:01:25 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2024/01/23 13:01:25 DEBUG : Saving config "token" in section "AddTestAccontName" of the config file
2024/01/23 13:01:25 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2024/01/23 13:01:25 DEBUG : AddTestAccontName: Saved new token in config file
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config out: out=&{State:*oauth-done,choose_type,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config in: state="*oauth-done,choose_type,,", result=""
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:25 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:25 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:27 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:28\",\"request-id\":\"e974cf08-c3e4-4bd7-9185-b2f3e019fa75\",\"client-request-id\":\"e974cf08-c3e4-4bd7-9185-b2f3e019fa75\"}}}" Result:}, err=<nil>
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:27 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:27 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:28 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:30\",\"request-id\":\"37b1a874-a4c8-41a4-8239-4a51ddfd3185\",\"client-request-id\":\"37b1a874-a4c8-41a4-8239-4a51ddfd3185\"}}}" Result:}, err=<nil>
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:28 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:28 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:29 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:29 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:29 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:30 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:31\",\"request-id\":\"915a4a54-bc36-454e-a217-6d11f48e65d5\",\"client-request-id\":\"915a4a54-bc36-454e-a217-6d11f48e65d5\"}}}" Result:}, err=<nil>
2024/01/23 13:01:30 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:30 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:30 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:30 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:30 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:30 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:31 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:32\",\"request-id\":\"32922e47-2b6e-4610-b6ec-447ac42c8663\",\"client-request-id\":\"32922e47-2b6e-4610-b6ec-447ac42c8663\"}}}" Result:}, err=<nil>
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:31 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:31 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:32 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:34\",\"request-id\":\"44694e6c-67ce-4e90-b9f0-3fc597eb0433\",\"client-request-id\":\"44694e6c-67ce-4e90-b9f0-3fc597eb0433\"}}}" Result:}, err=<nil>
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:32 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:32 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:33 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:33 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:33 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:34 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:35\",\"request-id\":\"12ec0314-641b-4251-a83f-d51367e454e3\",\"client-request-id\":\"12ec0314-641b-4251-a83f-d51367e454e3\"}}}" Result:}, err=<nil>
2024/01/23 13:01:34 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:34 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:34 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:34 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:34 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:34 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:35 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config out: out=&{State:driveid_final Option:<nil> OAuth:<nil> Error: Result:b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm}, err=<nil>
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config in: state="driveid_final", result="b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm"
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config out: out=&{State:choose_type Option:<nil> OAuth:<nil> Error:Failed to query root for drive "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2024-01-23T11:01:36\",\"request-id\":\"f5619b00-016e-4efd-87e5-6bfd0d05ccef\",\"client-request-id\":\"f5619b00-016e-4efd-87e5-6bfd0d05ccef\"}}}" Result:}, err=<nil>
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config in: state="choose_type", result=""
2024/01/23 13:01:35 DEBUG : Auto confirm is set, choosing default "onedrive" for state "choose_type_done", override by setting config parameter "config_type"
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config out: out=&{State:choose_type_done Option:<nil> OAuth:<nil> Error: Result:onedrive}, err=<nil>
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config in: state="choose_type_done", result="onedrive"
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config out: out=&{State:onedrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2024/01/23 13:01:35 DEBUG : AddTestAccontName: config in: state="onedrive", result=""
2024/01/23 13:01:36 DEBUG : Auto confirm is set, choosing default "b!D60eH3vIxUuFJlf1C-uGoqJn4Wc5-mBFg_FdLgdzBMAqvIgqBbD5QYgzK0ohr2xm" for state "driveid_final", override by setting config parameter "config_driveid"

hi, should update rclone to latest and test again.

when you run rclone config you have to answer set of questions.

You run:

rclone config create AddTestAccontName onedrive

which automatically sets your remote name and type with all other answers assumed to be default. Most likely onedrive account your are trying to configure it not the one which falls into all default categories.

My suggestion is you try to configure this account manually in interactive mode by running rclone config and then adapt your rclone config create accordingly with correct values.

And if you have still issues then update your rclone to the latest version, try again and provide DEBUG log.

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