Onedrive Failed to copy

What is the problem you are having with rclone?

Unable to copy some files in two containers
Received the following error:
Failed to copy
Wrong file "_ -- ---------- -- ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg"

What is your rclone version (output from rclone version)

rclone v1.56.2

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 copy onedrive1:/1/Byoru flcn:/1/Byoru --onedrive-chunk-size 5M --cache-chunk-no-memory --cache-chunk-total-size 3G --transfers 3 -P --ignore-size --ignore-checksum --tpslimit 10

The rclone config contents with secrets removed.

[onedrive1]
type = onedrive
client_id = 
client_secret = 
token = {""}
drive_id = 
drive_type = business

[flcn]
type = onedrive
client_id = 
client_secret = 
region = cn
token = {""}
drive_id = 
drive_type = documentLibrary

A log from the command with the -vv flag

2021-10-28 10:22:36 DEBUG : One drive root '1/Byoru': Waiting for transfers to finish
2021-10-28 10:22:37 DEBUG : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Starting multipart upload
2021-10-28 10:22:37 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021-10-28 10:22:37 ERROR : Attempt 3/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
Transferred:              0 / 0 Byte, -, 0 Byte/s, ETA -
Errors:                 1 (retrying may help)
Checks:              4389 / 4389, 100%
Elapsed time:        35.2s
2021/10/28 10:22:37 INFO  : 
Transferred:              0 / 0 Byte, -, 0 Byte/s, ETA -
Errors:                 1 (retrying may help)
Checks:              4389 / 4389, 100%
Elapsed time:        35.2s

2021/10/28 10:22:37 DEBUG : 8 go routines active
2021/10/28 10:22:37 Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

Hi Lan_Fu,

Welcome to the forum.

There are a lot of parameters, remotes and files in play here which makes it difficult to troubleshoot your issue.

I therefore suggest you first try with a minimum of parameters, that is something like this:

rclone copy onedrive1:/1/Byoru flcn:/1/Byoru -P --ignore-size --ignore-checksum

then try with a minimum of files, that is something like this:

rclone copy onedrive1:/1/Byoru flcn:/1/Byoru -P --ignore-size --ignore-checksum --include "_ -- ---------- -- ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg"

and then isolate the troubling file in a testfolder, that is something like this:

rclone copy onedrive1:/1/Byoru onedrive1:testfolder --include "_ -- ---------- -- ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg"

then check if you succeeded in isolating the issue, that is try something like this:

rclone copy onedrive1:testfolder flcn:testfolder --ignore-times

next you need to find out which remote is causing the issue. This is best done by copying to/from local, so the next test is to try a copy to local, that is something like this:

rclone copy onedrive1:testfolder ./testfolder --ignore-times

and then from local:

rclone copy ./testfolder flcn:testfolder --ignore-times

by now you have hopefully narrowed down the issue to a single remote and a single file. This allows you to make and post a full debug log that can be easily read and analyzed. If the error is seen when copying from onedrive1, then it can be made by a command something like this:

rclone copy onedrive1:testfolder ./testfolder --ignore-times -vv

I try to use the fewest parameters and the fewest files to return

2021-10-28 17:38:41 ERROR : Attempt 3/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
Transferred:              0 / 0 Byte, -, 0 Byte/s, ETA -
Errors:                 1 (retrying may help)
Checks:              4389 / 4389, 100%
Elapsed time:        19.6s
2021/10/28 17:38:41 Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

When I successfully isolate the file to /testfolder
use
rclone copy onedrive1:/testfolder flcn:/testfolder --ignore-times
The folder was successfully created, but the file could not be successfully transferred

C:\Users\15982>rclone copy onedrive1:/testfolder flcn:/testfolder --ignore-times
2021/10/28 17:52:20 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 17:52:20 ERROR : Attempt 1/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 17:52:22 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 17:52:22 ERROR : Attempt 2/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 17:52:27 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 17:52:27 ERROR : Attempt 3/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 17:52:27 Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

I successfully copied to the local, but unable to copy to flcn
Can be copied from local to onedrive1, but cannot be copied to flcn
I successfully copied the file to flcn from the sharepoint web page, but I cannot use rclone to copy it. This may be a problem with sharepoint cn

I added an international version of sharepoint and successfully copied it with rclone

This is the file that failed
Unable to copy to SharePoint cn

https://fulanlan-my.sharepoint.com/:i:/g/personal/one_fulanlan_onmicrosoft_com/Eb8pSWZDRjdJgiJi8kkdAq8Bf9dKB_WH6HnIYuA6DVM1aQ?e=4hoyRv

Perfect! Now we can take a closer look at the communication with the cn SharePoint server. Please post the full log from this command (please check for and redact secrets if any):

rclone copy ./testfolder flcn:testfolder --ignore-times --dump headers

next we make a simple test to see if it has something to do with special characters or similar in the file name. Try something like this:

rclone copy ./testfolder ./testfolder2
# now rename the file to ./testfolder2/testfile2 (using mv or similar on your OS)
rclone copy ./testfolder2 flcn:testfolder2 --ignore-times --dump headers

If you still get the same error, then post the output from the last command above instead of the first command in this post.

Does the file(name) contain anything that could be (mis)interpreted as illegal/unwanted in China?

root@ip-172-31-22-138:~# rclone copy ./testfolder flcn:testfolder --ignore-times --dump headers
2021/10/28 20:42:29 NOTICE: Automatically setting -vv as --dump is enabled
2021/10/28 20:42:29 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "copy" "./testfolder" "flcn:testfolder" "--ignore-times" "--dump" "headers"]
2021/10/28 20:42:29 DEBUG : Creating backend with remote "./testfolder"
2021/10/28 20:42:29 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/10/28 20:42:29 DEBUG : fs cache: renaming cache item "./testfolder" to be canonical "/root/testfolder"
2021/10/28 20:42:29 DEBUG : Creating backend with remote "flcn:testfolder"
2021/10/28 20:42:29 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2021/10/28 20:42:29 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:29 DEBUG : HTTP REQUEST (req 0xc0005bcd00)
2021/10/28 20:42:29 DEBUG : GET /v1.0/drives/xxxxx/root HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:29 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:29 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:29 DEBUG : HTTP RESPONSE (req 0xc0005bcd00)
2021/10/28 20:42:29 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 09a9d21d-d895-47c1-894f-94ed6101acb3
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:29 GMT
Odata-Version: 4.0
Request-Id: 09a9d21d-d895-47c1-894f-94ed6101acb3
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000063B"}}

2021/10/28 20:42:29 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:29 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:29 DEBUG : HTTP REQUEST (req 0xc00054e200)
2021/10/28 20:42:29 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ/children('@a1')?@a1=%27testfolder%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:29 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:30 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:30 DEBUG : HTTP RESPONSE (req 0xc00054e200)
2021/10/28 20:42:30 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 2e09a4b8-7de2-4ff8-ba78-c9256990cada
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:30 GMT
Request-Id: 2e09a4b8-7de2-4ff8-ba78-c9256990cada
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000639"}}

2021/10/28 20:42:30 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:30 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:30 DEBUG : HTTP REQUEST (req 0xc00054e800)
2021/10/28 20:42:30 DEBUG : GET /v1.0/drives/xxxxx/root/children('@a1')?@a1=%27testfolder%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:30 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:30 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:30 DEBUG : HTTP RESPONSE (req 0xc00054e800)
2021/10/28 20:42:30 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: cff40583-206d-41ad-8829-39c6426de8c0
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:30 GMT
Request-Id: cff40583-206d-41ad-8829-39c6426de8c0
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000063B"}}

2021/10/28 20:42:30 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:30 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:30 DEBUG : HTTP REQUEST (req 0xc00054ec00)
2021/10/28 20:42:30 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ/children('@a1')?@a1=%27testfolder%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:30 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:31 DEBUG : HTTP RESPONSE (req 0xc00054ec00)
2021/10/28 20:42:31 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 77616cb3-efe6-4fcb-ba32-b10de5ff9e15
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:31 GMT
Request-Id: 77616cb3-efe6-4fcb-ba32-b10de5ff9e15
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000639"}}

2021/10/28 20:42:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:31 DEBUG : One drive root 'testfolder': Waiting for checks to finish
2021/10/28 20:42:31 DEBUG : One drive root 'testfolder': Waiting for transfers to finish
2021/10/28 20:42:31 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:31 DEBUG : HTTP REQUEST (req 0xc00054f100)
2021/10/28 20:42:31 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ/children('@a1')?@a1=%27testfolder%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:31 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:31 DEBUG : HTTP RESPONSE (req 0xc00054f100)
2021/10/28 20:42:31 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: c53523a2-5dfd-4641-a1af-aa0a21d8439c
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:31 GMT
Request-Id: c53523a2-5dfd-4641-a1af-aa0a21d8439c
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2021/10/28 20:42:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:31 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:31 DEBUG : HTTP REQUEST (req 0xc00054f600)
2021/10/28 20:42:31 DEBUG : POST /v1.0/drives/xxxxx/items/01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ/children HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 79
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2021/10/28 20:42:31 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:32 DEBUG : HTTP RESPONSE (req 0xc00054f600)
2021/10/28 20:42:32 DEBUG : HTTP/1.1 201 Created
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: ca9eb1f6-f297-4d2a-81b5-e743e3beec44
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:31 GMT
Location: https://sust365.sharepoint.cn/_api/v2.0/drives/xxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL
Odata-Version: 4.0
Request-Id: ca9eb1f6-f297-4d2a-81b5-e743e3beec44
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000679"}}

2021/10/28 20:42:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:32 DEBUG : HTTP REQUEST (req 0xc0005bd800)
2021/10/28 20:42:32 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL/children('@a1')?@a1=%27uncategorized%28%E6%9D%82%E5%9B%BE%29%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:32 DEBUG : HTTP RESPONSE (req 0xc0005bd800)
2021/10/28 20:42:32 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 454c7d49-6996-496e-8fd9-a1cfd3c460e6
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:32 GMT
Request-Id: 454c7d49-6996-496e-8fd9-a1cfd3c460e6
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2021/10/28 20:42:32 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:32 DEBUG : HTTP REQUEST (req 0xc00054fe00)
2021/10/28 20:42:32 DEBUG : POST /v1.0/drives/xxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL/children HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 90
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2021/10/28 20:42:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:33 DEBUG : HTTP RESPONSE (req 0xc00054fe00)
2021/10/28 20:42:33 DEBUG : HTTP/1.1 201 Created
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: bcab1a7d-33dc-41cf-998f-546bc19d40a7
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:32 GMT
Location: https://sust365.sharepoint.cn/_api/v2.0/drives/xxxxx/items/01WDQ7RXYR5CF6YVY3MJCZ5O4T7H4RWDB5
Odata-Version: 4.0
Request-Id: bcab1a7d-33dc-41cf-998f-546bc19d40a7
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000679"}}

2021/10/28 20:42:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:33 DEBUG : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Starting multipart upload
2021/10/28 20:42:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:33 DEBUG : HTTP REQUEST (req 0xc0000e2000)
2021/10/28 20:42:33 DEBUG : POST /v1.0/drives/xxxxx/items/01WDQ7RXYR5CF6YVY3MJCZ5O4T7H4RWDB5/children('_%20--%20----------%20--%20%20%C2%B0%20on%20Instagram_%20_I_m%20here%20to%20kill%20your%20waifu%20----%20pew%20pew%20%250ASee%20more%20on%20m...jpg')/createUploadSession HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 116
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2021/10/28 20:42:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:33 DEBUG : HTTP RESPONSE (req 0xc0000e2000)
2021/10/28 20:42:33 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Client-Request-Id: acde07c7-0023-433a-8ee2-adfecc877471
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:33 GMT
Request-Id: acde07c7-0023-433a-8ee2-adfecc877471
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2021/10/28 20:42:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:33 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 20:42:33 ERROR : Attempt 1/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 20:42:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:33 DEBUG : HTTP REQUEST (req 0xc0000e3e00)
2021/10/28 20:42:33 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL/children?$top=1000 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:33 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:34 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:34 DEBUG : HTTP RESPONSE (req 0xc0000e3e00)
2021/10/28 20:42:34 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: d0ee94ac-9f34-4b40-b6b7-587b3e2cfb28
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:33 GMT
Odata-Version: 4.0
Request-Id: d0ee94ac-9f34-4b40-b6b7-587b3e2cfb28
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000679"}}

2021/10/28 20:42:34 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:34 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:34 DEBUG : HTTP REQUEST (req 0xc00027b400)
2021/10/28 20:42:34 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RXYR5CF6YVY3MJCZ5O4T7H4RWDB5/children?$top=1000 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:34 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:34 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:34 DEBUG : HTTP RESPONSE (req 0xc00027b400)
2021/10/28 20:42:34 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: d92edb63-1113-44a0-9525-6156b59bc0d1
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:34 GMT
Odata-Version: 4.0
Request-Id: d92edb63-1113-44a0-9525-6156b59bc0d1
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2021/10/28 20:42:34 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:34 DEBUG : One drive root 'testfolder': Waiting for checks to finish
2021/10/28 20:42:34 DEBUG : One drive root 'testfolder': Waiting for transfers to finish
2021/10/28 20:42:34 DEBUG : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Starting multipart upload
2021/10/28 20:42:34 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:34 DEBUG : HTTP REQUEST (req 0xc00054e000)
2021/10/28 20:42:34 DEBUG : POST /v1.0/drives/xxxxx/items/01WDQ7RXYR5CF6YVY3MJCZ5O4T7H4RWDB5/children('_%20--%20----------%20--%20%20%C2%B0%20on%20Instagram_%20_I_m%20here%20to%20kill%20your%20waifu%20----%20pew%20pew%20%250ASee%20more%20on%20m...jpg')/createUploadSession HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 116
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2021/10/28 20:42:34 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:35 DEBUG : HTTP RESPONSE (req 0xc00054e000)
2021/10/28 20:42:35 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Client-Request-Id: 8c19ecd4-8d12-4b6a-8bd3-5d3d2fe281e5
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:34 GMT
Request-Id: 8c19ecd4-8d12-4b6a-8bd3-5d3d2fe281e5
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000679"}}

2021/10/28 20:42:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:35 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 20:42:35 ERROR : Attempt 2/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 20:42:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:35 DEBUG : HTTP REQUEST (req 0xc00054e800)
2021/10/28 20:42:35 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL/children?$top=1000 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:35 DEBUG : HTTP RESPONSE (req 0xc00054e800)
2021/10/28 20:42:35 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: f22c1b90-3326-41a9-a18d-97c23b116679
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:35 GMT
Odata-Version: 4.0
Request-Id: f22c1b90-3326-41a9-a18d-97c23b116679
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2021/10/28 20:42:35 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:35 DEBUG : HTTP REQUEST (req 0xc00015cf00)
2021/10/28 20:42:35 DEBUG : GET /v1.0/drives/xxxxx/items/01WDQ7RXYR5CF6YVY3MJCZ5O4T7H4RWDB5/children?$top=1000 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/28 20:42:35 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:36 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:36 DEBUG : HTTP RESPONSE (req 0xc00015cf00)
2021/10/28 20:42:36 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 9bede78b-a473-4f45-a0e8-5a5226ee46d6
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Thu, 28 Oct 2021 12:42:35 GMT
Odata-Version: 4.0
Request-Id: 9bede78b-a473-4f45-a0e8-5a5226ee46d6
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"BJ1NEPF00000679"}}

2021/10/28 20:42:36 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:36 DEBUG : One drive root 'testfolder': Waiting for checks to finish
2021/10/28 20:42:36 DEBUG : One drive root 'testfolder': Waiting for transfers to finish
2021/10/28 20:42:36 DEBUG : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Starting multipart upload
2021/10/28 20:42:36 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:36 DEBUG : HTTP REQUEST (req 0xc00054ee00)
2021/10/28 20:42:36 DEBUG : POST /v1.0/drives/xxxxx/items/01WDQ7RXYR5CF6YVY3MJCZ5O4T7H4RWDB5/children('_%20--%20----------%20--%20%20%C2%B0%20on%20Instagram_%20_I_m%20here%20to%20kill%20your%20waifu%20----%20pew%20pew%20%250ASee%20more%20on%20m...jpg')/createUploadSession HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 116
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

2021/10/28 20:42:36 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/28 20:42:36 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:36 DEBUG : HTTP RESPONSE (req 0xc00054ee00)
2021/10/28 20:42:36 DEBUG : HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Client-Request-Id: 54310316-8235-410e-b761-05df539adb79
Content-Type: application/json
Date: Thu, 28 Oct 2021 12:42:36 GMT
Request-Id: 54310316-8235-410e-b761-05df539adb79
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2021/10/28 20:42:36 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/28 20:42:36 ERROR : uncategorized(杂图)/_ -- ---------- --  ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg: Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 20:42:36 ERROR : Attempt 3/3 failed with 1 errors and: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
2021/10/28 20:42:36 INFO  : 
Transferred:   	          0 / 0 Byte, -, 0 Byte/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         7.4s

2021/10/28 20:42:36 DEBUG : 4 go routines active
2021/10/28 20:42:36 Failed to copy: UnknownError: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>

I used mv to rename it to 1.jpg and successfully copied it to SharePoint cn
The error is related to the file name

Great, we are getting close. I agree the issue is related to file names and OneDrive region CN.

I therefore checked the source code and rclone has specific code to encode the requests for OneDrive regionCN. A bug in that code could explain the pattern we are seeing.

One last step before creating a GitHub issue and calling in the experts:

Are you able to isolate the character(s) (or character sequence) causing the issue?

One way is to use bisection where your split the name in two equal parts and then try the copy with each of the parts. One of them probably fails and then you can repeat the process with the failing part and so forth. (Unless caused by the length of the name, multiple characters, ...)

This knowledge may also help you and others work around the issue until a fix is released.

I found it

%0A

Perfect, thanks for the effort and patience! :slightly_smiling_face:

I have created an issue on your behalf on GitHub:

I suggest you (create a GitHub account and) make a small comment on the GitHub issue. That will keep you informed and allow the developers to communicate directly with you in case of questions or betas to test.

Hi @Lan_Fu

Your issue gets quick attention on GitHub, please create an account to answer the questions and see the possible mitigations.

These are some of the entries for you:

from @ncw: Can you try uploading a file called test%46.txt as per that issue and see what happens? If it is the same issue it will get uploaded as a file called testF.txt

from @ivandeex: try the following on command line

--onedrive-encoding=Percent,Hash,Question,Colon,Asterisk,Ctl

I successfully uploaded test%46.txt, the name displayed is testF.txt

Add to

--onedrive-encoding=Percent,Hash,Question,Colon,Asterisk,Ctl

After uploading, its name is test%46.txt

After adding the above command, "_ - ---------- - ° on Instagram_ _I_m here to kill your waifu ---- pew pew %0ASee more on m...jpg" can be uploaded successfully

1 Like

Ah! That's the Microsoft bug in the code of Onedrive CN - they treat %NN as an ASCII code :slight_smile:

I think Nick can submit an upstream report soon. Fixing it will take them long.

After uploading, its name is test%46.txt

Yep. Now rclone converted % to wide chinese % so Onedrive treat it as wide percent rather than ascii code. Then, when listing, rclone converted wide to normal on the way back.

I suggesy you add the below hack in the onedrive-cn rclone.conf section:

[flcn]
type = onedrive
region = cn
...
encoding = Percent,Hash,Question,Colon,Asterisk,Ctl

And shoot the wifeu live happily. :slight_smile:

@Lan_Fu would it be possible for you to do this test and paste the rclone-test.log here?

echo "test file" > test%46.txt
rclone copy test%46.txt flcn:testfolder -vv --ignore-times --dump bodies --low-level-retries 1 --retries 1 --log-file rclone-test.log

Feel free to exit the output for privacy. What I need to see is the full transaction which uploads the file and the response.

Then we can double check to see if this is an rclone bug or a onedrive CN bug.

Thank you :slight_smile:

@ncw
Trying to facilitate communication across almost opposite time zones and languages:
I guess you mean: Feel free to edit ...
I guess you expect Lan_Fu to perform the test without the encoding hack proposed above.

2021/10/30 15:13:36 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "copy" "test%46.txt" "flcn:testfolder" "-vv" "--ignore-times" "--dump" "bodies" "--low-level-retries" "1" "--retries" "1" "--log-file" "rclone-test.log"]
2021/10/30 15:13:36 DEBUG : Creating backend with remote "test%46.txt"
2021/10/30 15:13:36 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/10/30 15:13:36 DEBUG : fs cache: adding new entry for parent of "test%46.txt", "/root"
2021/10/30 15:13:36 DEBUG : Creating backend with remote "flcn:testfolder"
2021/10/30 15:13:36 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2021/10/30 15:13:36 DEBUG : flcn: Loaded invalid token from config file - ignoring
2021/10/30 15:13:36 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:36 DEBUG : HTTP REQUEST (req 0xc000730500)
2021/10/30 15:13:36 DEBUG : POST /common/oauth2/v2.0/token HTTP/1.1
Host: login.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 1077
Authorization: XXXX
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

grant_type=refresh_token&refresh_token=0.AAAActi_vww7bUi2pl_ozUx_7E9qT9edbZlPlxw3AZfuPMIBAGE.AgABAAAAAADF8uhbdqMKTqrrFtoyDhmYAwDs_wQA8_9tVdZMP1Ni24pN6gZiTaDpEZ4spZ2HZT8MwDqH1T0tIGKSPArtyB5syifISSms3XPBoyXQ8hiBc4H2xzDAgtzRyyQoZ0peQmMYuKL2qKk5kyleYX3Ivp6xaKo57v1P__hbWcWSFiXivf3SSXYOytWyiLVbmalXQXl8nLsmhs7asR2vyZTRLLiGWno2krzSYd-ofTl7QGpnXxan0SOx-R25QxgF_W-O7Y6NWbQQhVbY8BdiVclavUrhXdgCOJQTYED19swiTC8v8FDPinPJiTX-Y3djMFfLKtLGe8s2XTIKBcUaJiTouRqN2Jn0jfyEN6yGySjwxHNYI6d-1oY7bnvidUjVNz1-dxSP2QdKAZEJwJe7jWRzPiA86aQVG0IRp3_zJ-v_zEBBO8htBTG-gOLuwEipry0N4RWsSSlSQdgFCetohiK5gBreZx1GwFl3YqAUqzu7mOK3tskFQ2zntwW2icwscZv3Jj7UFRYVIUevkCKYu1EWeECtxV-OOYQlK4z7qETNCB2RCg7GUIsN8GCFHGXhOGWizgJtSA4IT12MYh_D7PC52thddzsvkiWB8VmbR5GfizcZrwghYsA01bpBa3fPmGkt7l6nR5peqiPDDZDzdXxIymgdQPqK8_FGcuXOQQ7FEpoDHReGgxkzsVY5vxvz5rvpbbplmFpAtMRVdE6CDkUWyBW3UXLFmSf6F7yrzzd7BdwC5H1gX6aVgS56nztWcJ3kCZc3-XR-7IbnRgr9OBYwloz-vs7mlyd1DJshj_cJxAmdeZjT34Cgyk9QB7kbE_vMiYY7c7rPTuIJayCpXmoBFfo-LNexcUHd99XU7zesPPrgOS7QEjl7ZYNzkC3UVXEerB-goQ5pdBxom-1KrwLTJLX4ClzQqYnSFL258OYGa1ppULUG19OAioIySPFdmR8QF2GgwBuOt_FbWAoL
2021/10/30 15:13:36 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:36 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:36 DEBUG : HTTP RESPONSE (req 0xc000730500)
2021/10/30 15:13:36 DEBUG : HTTP/1.1 200 OK
Content-Length: 3132
Cache-Control: no-store, no-cache
Content-Type: application/json; charset=utf-8
Date: Sat, 30 Oct 2021 15:13:36 GMT
Expires: -1
P3p: CP="DSP CUR OTPi IND OTRi ONL FIN"
Pragma: no-cache
Set-Cookie: fpc=Akw7p5PuO6lNtyqcg9W5PDSjowQ3AQAAACBYD9kOAAAA; expires=Mon, 29-Nov-2021 15:13:36 GMT; path=/; secure; HttpOnly; SameSite=None
Set-Cookie: stsservicecookie=estschina; path=/; secure; samesite=none; httponly
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Ms-Ests-Server: 2.1.12171.14 - CNN2LR1 ProdSlices
X-Ms-Request-Id: 7522829f-39aa-4a04-829d-f90c213a9600

{"token_type":"Bearer","scope":"Files.Read Files.Read.All Files.ReadWrite Files.ReadWrite.All Sites.Read.All profile openid email","expires_in":3599,"ext_expires_in":3599,"access_token":"eyJ0eXAiOiJKV1QiLCJub25jZSI6IjFxbzRnSHl6dnlfV1A0TDA4U1FUUm00UEhTRlVfdzhuczNhMllORGRGM2ciLCJhbGciOiJSUzI1NiIsIng1dCI6Il9DSkFPdHlzWVZtNXhjMVlvSzBvUTdxeUJDUSIsImtpZCI6Il9DSkFPdHlzWVZtNXhjMVlvSzBvUTdxeUJDUSJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy5jaGluYWNsb3VkYXBpLmNuL2JmYmZkODcyLTNiMGMtNDg2ZC1iNmE2LTVmZThjZDRjN2ZlYy8iLCJpYXQiOjE2MzU2MDY1MTYsIm5iZiI6MTYzNTYwNjUxNiwiZXhwIjoxNjM1NjEwNDE2LCJhY3IiOiIxIiwiYWlvIjoiNDJKZ1lKaFJ5ZnJoSVhQRzNhOHQ2L2dQWm5JWEo5NTJZdGVOeVp1OGJUdURzRUhxN1BjQSIsImFtciI6WyJwd2QiXSwiYXBwX2Rpc3BsYXluYW1lIjoicmNsb25lIiwiYXBwaWQiOiJkNzRm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PvfQrRLMlyAzVH7KYkRjnxpXsOBc8bnItZXnizUoPQl7FET19ednbwxCMbfV23YzT1aYSIkNHa2gHdSRhhXUPXPS9hdgvrpsANK1noaISm5WM1sW8Xqogfpk6MVEqWQTYZbWd0infgecdIxgdDX_ualdpbM61ya0y44fJ3FJ-LhqxZtVwToDPTh5DWV1aej"}
2021/10/30 15:13:36 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:36 DEBUG : Saving config "token" in section "flcn" of the config file
2021/10/30 15:13:36 DEBUG : flcn: Saved new token in config file
2021/10/30 15:13:36 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:36 DEBUG : HTTP REQUEST (req 0xc00002ab00)
2021/10/30 15:13:36 DEBUG : GET /v1.0/drives/drive_idxxxxxx/root HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/30 15:13:36 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : HTTP RESPONSE (req 0xc00002ab00)
2021/10/30 15:13:37 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: cd9fe279-2bc5-4fa8-9543-bcdea4d4e225
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Sat, 30 Oct 2021 15:13:36 GMT
Odata-Version: 4.0
Request-Id: cd9fe279-2bc5-4fa8-9543-bcdea4d4e225
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

2a4
{"@odata.context":"https://microsoftgraph.chinacloudapi.cn/v1.0/$metadata#drives('b%21drive_idxxxxxxxxx')/root/$entity","createdDateTime":"2021-10-16T16:25:31Z","id":"01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ","lastModifiedDateTime":"2021-10-30T15:12:07Z","name":"root","webUrl":"https://xx.sharepoint.cn/sites/wendang/Shared%20Documents","size":4614244099630,"parentReference":{"driveId":"drive_idxxxxxx","driveType":"documentLibrary"},"fileSystemInfo":{"createdDateTime":"2021-10-16T16:25:31Z","lastModifiedDateTime":"2021-10-30T15:12:07Z"},"folder":{"childCount":4},"root":{}}
0

2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : HTTP REQUEST (req 0xc00002b100)
2021/10/30 15:13:37 DEBUG : GET /v1.0/drives/drive_idxxxxxx/items/01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ/children('@a1')?@a1=%27testfolder%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : HTTP RESPONSE (req 0xc00002b100)
2021/10/30 15:13:37 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 00e1fab8-2d8c-49e2-8baf-1d1ff2a1f8c6
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Sat, 30 Oct 2021 15:13:37 GMT
Odata-Version: 4.0
Request-Id: 00e1fab8-2d8c-49e2-8baf-1d1ff2a1f8c6
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

576
{"@odata.context":"https://microsoftgraph.chinacloudapi.cn/v1.0/$metadata#drives('b%21drive_idxxxxxxxxx')/items('01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ')/children/$entity","createdDateTime":"2021-10-28T12:42:32Z","eTag":"\"{4E8A66A2-C1B3-46B9-9859-AE5A5194E8CB},1\"","id":"01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL","lastModifiedDateTime":"2021-10-28T12:42:32Z","name":"testfolder","webUrl":"https://xx.sharepoint.cn/sites/wendang/Shared%20Documents/testfolder","cTag":"\"c:{4E8A66A2-C1B3-46B9-9859-AE5A5194E8CB},0\"","size":0,"createdBy":{"application":{"id":"client_idxxxxx","displayName":"rclone"},"user":{"email":"201804040201@sust.cn","id":"41b2f5bd-405d-401d-a208-670151cd29ca","displayName":"\u62dc\u9759\u6021"}},"lastModifiedBy":{"application":{"id":"client_idxxxxx","displayName":"rclone"},"user":{"email":"201804040201@sust.cn","id":"41b2f5bd-405d-401d-a208-670151cd29ca","displayName":"\u62dc\u9759\u6021"}},"parentReference":{"driveId":"drive_idxxxxxx","driveType":"documentLibrary","id":"01WDQ7RX56Y2GOVW7725BZO354PWSELRRZ","path":"/drives/drive_idxxxxxx/root:"},"fileSystemInfo":{"createdDateTime":"2021-10-28T12:42:32Z","lastModifiedDateTime":"2021-10-28T12:42:32Z"},"folder":{"childCount":0}}
0

2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : HTTP REQUEST (req 0xc00002b400)
2021/10/30 15:13:37 DEBUG : GET /v1.0/drives/drive_idxxxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL/children('@a1')?@a1=%27testfolder%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : HTTP RESPONSE (req 0xc00002b400)
2021/10/30 15:13:37 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 70d0414f-2c71-4312-bb58-248bac20e6fc
Content-Type: application/json
Date: Sat, 30 Oct 2021 15:13:37 GMT
Request-Id: 70d0414f-2c71-4312-bb58-248bac20e6fc
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

e9
{"error":{"code":"itemNotFound","message":"The resource could not be found.","innerError":{"date":"2021-10-30T15:13:37","request-id":"70d0414f-2c71-4312-bb58-248bac20e6fc","client-request-id":"70d0414f-2c71-4312-bb58-248bac20e6fc"}}}
0

2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : HTTP REQUEST (req 0xc00002b700)
2021/10/30 15:13:37 DEBUG : GET /v1.0/drives/drive_idxxxxxx/root/children('@a1')?@a1=%27testfolder%2Ftest%2546.txt%27 HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Authorization: XXXX
Accept-Encoding: gzip

2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : HTTP RESPONSE (req 0xc00002b700)
2021/10/30 15:13:37 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 63235ee3-9f81-48e7-85db-5c1fd00c5dd6
Content-Type: application/json
Date: Sat, 30 Oct 2021 15:13:37 GMT
Request-Id: 63235ee3-9f81-48e7-85db-5c1fd00c5dd6
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

e9
{"error":{"code":"itemNotFound","message":"The resource could not be found.","innerError":{"date":"2021-10-30T15:13:37","request-id":"63235ee3-9f81-48e7-85db-5c1fd00c5dd6","client-request-id":"63235ee3-9f81-48e7-85db-5c1fd00c5dd6"}}}
0

2021/10/30 15:13:37 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:37 DEBUG : test%46.txt: Need to transfer - File not found at Destination
2021/10/30 15:13:37 DEBUG : test%46.txt: Starting multipart upload
2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:37 DEBUG : HTTP REQUEST (req 0xc000730e00)
2021/10/30 15:13:37 DEBUG : POST /v1.0/drives/drive_idxxxxxx/items/01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL/children('test%2546.txt')/createUploadSession HTTP/1.1
Host: microsoftgraph.chinacloudapi.cn
User-Agent: rclone/v1.56.2
Content-Length: 116
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip

{"item":{"fileSystemInfo":{"createdDateTime":"2021-10-30T15:12:16Z","lastModifiedDateTime":"2021-10-30T15:12:16Z"}}}
2021/10/30 15:13:37 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:38 DEBUG : HTTP RESPONSE (req 0xc000730e00)
2021/10/30 15:13:38 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache
Client-Request-Id: 0ff1139c-1e33-426b-b91e-25d7db8187d6
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Sat, 30 Oct 2021 15:13:38 GMT
Location: https://microsoftgraph.chinacloudapi.cn
Odata-Version: 4.0
Request-Id: 0ff1139c-1e33-426b-b91e-25d7db8187d6
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"China North","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"BJ1NEPF0000067C"}}

660
{"@odata.context":"https://microsoftgraph.chinacloudapi.cn/v1.0/$metadata#microsoft.graph.uploadSession","expirationDateTime":"2021-10-30T15:28:38.19Z","nextExpectedRanges":["0-"],"uploadUrl":"https://xx.sharepoint.cn/sites/wendang/_api/v2.0/drives/drive_idxxxxxx/items/01WDQ7RX22ZOQPON3FVBDYBYNWFL2A2QCF/uploadSession?guid='5b35be70-8dcb-47ec-9d01-5c4483f9fdbf'&overwrite=True&rename=False&dc=0&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvc3VzdDM2NS5zaGFyZXBvaW50LmNuQGJmYmZkODcyLTNiMGMtNDg2ZC1iNmE2LTVmZThjZDRjN2ZlYyIsImlzcyI6IjAwMDAwMDAzLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMCIsIm5iZiI6IjE2MzU2MDY4MTgiLCJleHAiOiIxNjM1NjkzMjE4IiwiZW5kcG9pbnR1cmwiOiJJb3h3TjJZcFlFZmR6KzdOOGxkYWp0RGpjbzhQaVFjUW91U01EdVpGdzBjPSIsImVuZHBvaW50dXJsTGVuZ3RoIjoiMjU5IiwiaXNsb29wYmFjayI6IlRydWUiLCJjaWQiOiJNR1ptTVRFek9XTXRNV1V6TXkwME1qWmlMV0k1TVdVdE1qVmtOMlJpT0RFNE4yUTIiLCJ2ZXIiOiJoYXNoZWRwcm9vZnRva2VuIiwic2l0ZWlkIjoiTnpGbU56VTVPRFF0TjJReE15MDBPRE00TFRrM1lqSXRaamRqT1RkaE9XSTJZbVJoIiwiYXBwX2Rpc3BsYXluYW1lIjoicmNsb25lIiwiYXBwaWQiOiJkNzRmNmE0Zi02ZDlkLTRmOTktOTcxYy0zNzAxOTdlZTNjYzIiLCJ0aWQiOiJiZmJmZDg3Mi0zYjBjLTQ4NmQtYjZhNi01ZmU4Y2Q0YzdmZWMiLCJ1cG4iOiIyMDE4MDQwNDAyMDFAc3VzdC5jbiIsInB1aWQiOiIxMDAzMzIzMEM1QTNFNjcyIiwiY2FjaGVrZXkiOiIwaC5mfG1lbWJlcnNoaXB8MTAwMzMyMzBjNWEzZTY3MkBsaXZlLmNvbSIsInNjcCI6Im15ZmlsZXMucmVhZCBhbGxmaWxlcy5yZWFkIG15ZmlsZXMud3JpdGUgYWxsZmlsZXMud3JpdGUgYWxsc2l0ZXMucmVhZCIsInR0IjoiMiIsInVzZVBlcnNpc3RlbnRDb29raWUiOm51bGwsImlwYWRkciI6IjQwLjcyLjc0LjE5MyJ9.Wk9PTXc5TTFOeUhZQTZXUjFNNDhXOEFNalVMYWVDRzhMUkt0L1hHNnZTZz0"}
0

2021/10/30 15:13:38 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:38 DEBUG : test%46.txt: Uploading segment 0/10 size 10
2021/10/30 15:13:38 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/10/30 15:13:38 DEBUG : HTTP REQUEST (req 0xc00002bc00)
2021/10/30 15:13:38 DEBUG : PUT /sites/wendang/_api/v2.0/drives/drive_idxxxxxx/items/01WDQ7RX22ZOQPON3FVBDYBYNWFL2A2QCF/uploadSession?guid='5b35be70-8dcb-47ec-9d01-5c4483f9fdbf'&overwrite=True&rename=False&dc=0&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDAvc3VzdDM2NS5zaGFyZXBvaW50LmNuQGJmYmZkODcyLTNiMGMtNDg2ZC1iNmE2LTVmZThjZDRjN2ZlYyIsImlzcyI6IjAwMDAwMDAzLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMCIsIm5iZiI6IjE2MzU2MDY4MTgiLCJleHAiOiIxNjM1NjkzMjE4IiwiZW5kcG9pbnR1cmwiO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15:13:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:39 DEBUG : HTTP RESPONSE (req 0xc00002bc00)
2021/10/30 15:13:39 DEBUG : HTTP/1.1 201 Created
Transfer-Encoding: chunked
Cache-Control: no-cache
Content-Security-Policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com;
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Sat, 30 Oct 2021 15:13:38 GMT
Expires: -1
Microsoftsharepointteamservices: 16.0.0.21820
Ms-Cv: n/4/BIXQAAASfAmHJUTL6Q.0
Odata-Version: 4.0
P3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
Pragma: no-cache
Request-Id: 043ffe9f-d085-0000-127c-09872544cbe9
Server: Microsoft-IIS/10.0
Spclientservicerequestduration: 495
Sprequestguid: 043ffe9f-d085-0000-127c-09872544cbe9
Strict-Transport-Security: max-age=31536000
X-Aspnet-Version: 4.0.30319
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Ms-Invokeapp: 1; RequireReadOnly
X-Powered-By: ASP.NET
X-Sharepointhealthscore: 2
X-Sp-Serverstate: ReadOnly=0

ab1
{"@odata.context":"https://xx.sharepoint.cn/sites/wendang/_api/v2.0/$metadata#items/$entity","@content.downloadUrl":"https://xx.sharepoint.cn/sites/wendang/_layouts/15/download.aspx?UniqueId=f7a0cb5a-6537-47a8-80e1-b62af40d4045&Translate=false&tempauth=eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwM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YXF1emVaRUNteFBkMC9uYz0&ApiVersion=2.0","createdBy":{"application":{"id":"client_idxxxxx","displayName":"rclone"},"user":{"email":"201804040201@sust.cn","id":"41b2f5bd-405d-401d-a208-670151cd29ca","displayName":"\u62dc\u9759\u6021"}},"createdDateTime":"2021-10-30T15:12:16Z","eTag":"\"{F7A0CB5A-6537-47A8-80E1-B62AF40D4045},5\"","id":"01WDQ7RX22ZOQPON3FVBDYBYNWFL2A2QCF","lastModifiedBy":{"application":{"id":"client_idxxxxx","displayName":"rclone"},"user":{"email":"201804040201@sust.cn","id":"41b2f5bd-405d-401d-a208-670151cd29ca","displayName":"\u62dc\u9759\u6021"}},"lastModifiedDateTime":"2021-10-30T15:12:16Z","name":"testF.txt","parentReference":{"driveId":"drive_idxxxxxx","driveType":"documentLibrary","id":"01WDQ7RX5CM2FE5M6BXFDJQWNOLJIZJ2GL","path":"/drives/drive_idxxxxxx/root:/testfolder"},"webUrl":"https://xx.sharepoint.cn/sites/wendang/Shared%20Documents/testfolder/testF.txt","cTag":"\"c:{F7A0CB5A-6537-47A8-80E1-B62AF40D4045},2\"","file":{"hashes":{"quickXorHash":"dCjDHOgAAjOkgQ1lWgAAAAAAAAA="},"irmEnabled":false,"mimeType":"text/plain"},"fileSystemInfo":{"createdDateTime":"2021-10-30T15:12:16Z","lastModifiedDateTime":"2021-10-30T15:12:16Z"},"size":10}
0

2021/10/30 15:13:39 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/10/30 15:13:39 DEBUG : test%46.txt: quickxor = 7428c31ce8000233a4810d655a00000000000000 OK
2021/10/30 15:13:39 INFO  : test%46.txt: Copied (new)
2021/10/30 15:13:39 INFO  : 
Transferred:   	         10 / 10 Byte, 100%, 9 Byte/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         3.4s

2021/10/30 15:13:39 DEBUG : 12 go routines active

Looking at this I see that

  1. rclone correctly URL encodes the file name
  2. onedrive CN double decodes the file name to get this

So I'm reasonably certain that this is the same issue as this one

Which has been fixed for non CN onedrive regions.

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