Error reading destination directory

Digging into that error, it is caused by this which is rclone trying to list the directory in question.

So what it looks like is a timeout, so the operation at microsoft took longer than some timeout - which looks like 20s according to the rclone log and the Duration header.

2018/10/25 09:46:11 DEBUG : HTTP REQUEST (req 0xc00011a500)
2018/10/25 09:46:11 DEBUG : GET /v1.0/drives/XXX/items/XXX/children?$top=1000 HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.44
Authorization: XXXX
Accept-Encoding: gzip

2018/10/25 09:46:11 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2018/10/25 09:46:31 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2018/10/25 09:46:31 DEBUG : HTTP RESPONSE (req 0xc00011a500)
2018/10/25 09:46:31 DEBUG : HTTP/1.1 504 Gateway Timeout
Transfer-Encoding: chunked
Cache-Control: private
Content-Type: application/json
Date: Thu, 25 Oct 2018 07:46:31 GMT
Duration: 20023.7962
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceC","Ring":"3","ScaleUnit":"003","Host":"AGSFE_IN_50","ADSiteName":"NEU"}}

c6
{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "request-id": "XXXX",
      "date": "2018-10-25T07:46:31"
    }
  }
}
0

In the beta below I added a parameter --onedrive-list-chunk - the default is 1000 - can you try the lsf again with this parameter - try halving each time from 1000 until it works. It may not work at all, but it may help!

https://beta.rclone.org/branch/v1.44-022-ge606d456-fix-onedrive-list-beta/ (uploaded in 15-30 mins)