What is the problem you are having with rclone?
For some time now I have been using my Microsoft OneDrive account as an encrypted remote for backups of an Android device. In the last week or so these have started to fail with an “HTTP error 400”. It only seems to happen after uploading around 1GB of data. The logs on Pastebin below show the output of a copy of a 1GB (works) and a 2GB (fails) file directly to the OneDrive remote. Commands such as “ls”, “delete”, “cleanup”, etc. all work OK. I have also tested the same actions using the same version / config of Rclone on a Linux (OpenSUSE) client and the results are the same.
I’m not sure if this is related to the latest release of Rclone, some sort of change by Microsoft on their end, or something else.
Any help / advice is much appreciated.
Run the command 'rclone version' and share the full output of the command.
rclone v1.71.0-termux
- os/version: unknown
- os/kernel: 4.14.356-openela-rc1-g5d7843bef401 (aarch64)
- os/type: android
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.24.5
- go/linking: dynamic
- go/tags: noselfupdate
Which cloud storage system are you using? (eg Google Drive)
Microsoft OneDrive (personal)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy --verbose --verbose {file} OneDrive:
The rclone config contents with secrets removed.
[OneDrive]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = personal
A log from the command with the -vv
flag
test-1G : https://pastebin.com/Fbihd2EC
test-2G : https://pastebin.com/0tYjuv9V
asdffdsa
(jojothehumanmonkey)
September 1, 2025, 4:06pm
2
welcome to the forum,
mhp5r0q3:
same version / config
so you copied the config file from termux machine to opensuse machine?
or
created a new config file on the opensuse machine?
I copied the config over.
asdffdsa
(jojothehumanmonkey)
September 1, 2025, 5:01pm
4
400 Bad Request
for a deeper look, try a --dump
such as --dump=headers
All I can see is a bunch of PUT requests that receive a “202 Accepted” response, then suddenly a request receives a “400 Bad Request” response.
Log with headers:
test-2G.log (759.9 KB)
I think I've found the cause.
I suddenly started seeing messages such as:
ERROR : Personal Vault: error listing: couldn't list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
when running commands such as “ls".
This led me to:
opened 09:39AM - 07 Aug 25 UTC
bug
Remote: One Drive
#### The associated forum post URL from `https://forum.rclone.org`
https://foru… m.rclone.org/t/onedrive-personal-vault-issue/51929
#### What is the problem you are having with rclone?
Commands that attempt to recurse into the `Personal Vault` "directory" in the root of a Personal OneDrive have started failing with the following error:
ERROR : Personal Vault: error listing: couldn't list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
#### What is your rclone version (output from `rclone version`)
I've seen the behaviour with both of the below, and other users on the forum have reported the same issue on other systems and versions.
* NixOS 25.05 rclone package with the patch for #8151 added before building:
```
rclone v1.69.1
- os/version: nixos 25.05 (64 bit)
- os/kernel: 6.6.51 (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.24.3
- go/linking: dynamic
- go/tags: cmount
```
* Binary file downloaded from https://downloads.rclone.org/v1.70.3/rclone-v1.70.3-linux-arm64.zip on the same system:
```
rclone v1.70.3
- os/version: nixos 25.05 (64 bit)
- os/kernel: 6.6.51 (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.24.4
- go/linking: static
- go/tags: none
```
#### Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Linux, NixOS 25.05, 64-bit ARM.
#### Which cloud storage system are you using? (e.g. Google Drive)
OneDrive
#### The command you were trying to run (e.g. `rclone copy /tmp remote:tmp`)
`rclone lsf --max-depth 2 onedrive: >/dev/null`
#### A log from the command with the `-vv` flag (e.g. output from `rclone -vv copy /tmp remote:tmp`)
```
$ ./rclone lsf -vv --max-depth 2 onedrive: >/dev/null
2025/08/07 10:37:29 DEBUG : rclone: Version "v1.70.3" starting with parameters ["./rclone" "lsf" "-vv" "--max-depth" "2" "onedrive:"]
2025/08/07 10:37:29 DEBUG : Creating backend with remote "onedrive:"
2025/08/07 10:37:29 DEBUG : Using config file from "/home/adam/.config/rclone/rclone.conf"
2025/08/07 10:37:31 DEBUG : Adam's Notebook: OneNote file not shown in directory listing
2025/08/07 10:37:31 ERROR : Personal Vault: error listing: couldn't list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
2025/08/07 10:37:35 DEBUG : 6 go routines active
2025/08/07 10:37:35 NOTICE: Failed to lsf with 2 errors: last error was: error in ListJSON: couldn't list files: invalidRequest: invalidResourceId: ObjectHandle is Invalid
```
#### How to use GitHub
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are affected by the same issue.
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
* Subscribe to receive notifications on status change and new comments.
I can confirm that adding:
--exclude='/Personal Vault/**'
to every command resolves all problems.
I'd never even heard of a “Personal Vault” until this problem. Appears to be something being rolled out to all accounts, and can't be disabled.
I will monitor the issue above, but I think this thread can be marked as resolved.
Thanks for the assistance.
1 Like
It is NEVER good idea to use such remote root for any operations. OneDrive and many others similar companies are not just storage providers and have multiple ideas about what other, useful or not, services to offer.
Keep your rclone synced data always in remote:mydata
dedicated directory. Or switch to some pure storage provider if you can not live without root storage access.