Rclone 1.69 icloud issue: http error 423 "Missing PCS cookies from the request"

I've just tried out rclone 1.69 and configured icloud as new remote.
The setup with rclone config is pretty straightforward, MFA worked, and everything seems configured right.

However rclone ls <icloud remote name> fails with "error listing: HTTP error 423 (423 Locked) returned body" [...] errorReason":"Missing PCS cookies from the request","errorCode":423}"

ICloud functionality is completely new. It seems a bug, but I'm not sure. Any ideas?

welcome to the forum

can you please post the output of
rclone version
rclone config redacted


to see the API calls, try one of the --dump flags, such as --dump=headers

and to keep the log small, use --retries=1

rclone v1.69.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.148-tegra (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.23.4
- go/linking: static
- go/tags: none
[name_redacted]
type = iclouddrive
apple_id = XXX
password = XXX
cookies = XXX
trust_token = XXX
2025/01/14 21:53:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/01/14 21:53:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/01/14 21:53:07 DEBUG : HTTP RESPONSE (req 0x40009b4640)
2025/01/14 21:53:07 DEBUG : HTTP/2.0 423 Locked
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://www.icloud.com
Access-Control-Expose-Headers: X-Apple-Request-UUID,Via
Cache-Control: no-cache, no-store, private
Content-Type: application/json; charset=UTF-8
Date: Tue, 14 Jan 2025 20:53:07 GMT
Server: AppleHttpServer/*redacted*
Set-Cookie: X-APPLE-WEBAUTH-TOKEN="*redacted*";Expires=*redacted* GMT;Path=/;Domain=.icloud.com;Secure;HttpOnly
Strict-Transport-Security: max-age=31536000; includeSubDomains;
Via: vrail:*redacted*.me.com:8301:*redacted*
X-Apple-Edge-Response-Time: 447
X-Apple-Request-Uuid: *redacted*
X-Apple-User-Partition: 53
X-Responding-Instance: drivews:*redacted*:nocommit

2025/01/14 21:53:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/01/14 21:53:07 ERROR : : error listing: HTTP error 423 (423 Locked) returned body: "{\"requestUUID\":\"*redacted*\",\"errorReason\":\"Missing PCS cookies from the request\",\"errorCode\":423}"
2025/01/14 21:53:07 DEBUG : 6 go routines active
2025/01/14 21:53:07 NOTICE: Failed to lsd with 2 errors: last error was: HTTP error 423 (423 Locked) returned body: "{\"requestUUID\":\"*redacted*\",\"errorReason\":\"Missing PCS cookies from the request\",\"errorCode\":423}"

Try doing an

rclone config reconnect yourremote:

If that doesn't work then please open a GitHub issue and I'll tag the developer if the backend.

Thanks

2 Likes

The issue has been resolved.
See Rclone 1.69 icloud issue: http error 423 “Missing PCS cookies from the request” · Issue #8310 · rclone/rclone · GitHub.

For those who find this in the future

Missing PCS cookies from the request

This means you have Advanced Data Protection (ADP) turned on. This is not supported at the moment. If you want to use rclone you will have to turn it off.

On iPhone, Settings > Apple Account > iCloud > 'Access iCloud Data on the Web' must be ON, and 'Advanced Data Protection' OFF.

You will need to clear the cookies and the trust_token fields in the config. Or you can delete the remote config and start again.

You should then run rclone reconnect remote:.

Note that changing the ADP setting may not take effect immediately - you may need to wait a few hours or a day before you can get rclone to work - keep clearing the config entry and running rclone reconnect remote: until rclone functions properly.

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