R2 - "SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided"

hello, thanks,

using R2, getting a lot of errors, and a bit confused about the why this is 403.

what is the cause of this error, as in all my years of using aws and wasabi, never saw this error

in my testing, might be an issue with too many api requests per second

“error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your secret access key and signing method.
status code: 403, request id: , host id: )”

using rclone for file transfer, here is a log snippet

DEBUG : PUT /test/file.ext?partNumber=13&uploadId=ACWFU275noHoEAa6W2uoPZsnEbr8ixThy5zUORXQVCEQQKBwZgEFqw%2BS9Iuwl5DtJ7SXOSjurIEd4W5WfKc9tMzKHVmWFBYwnUowWNtddqwO7j%2BuYROC%2BKPAqYosft0NCNzUBydnd7O%2FKtsgp9XgHeL7Y8FHQ3lDLY6pFCq9dkquhQlP0t1dITL%2BNxxBMcpmy1oP2SlZA17%2B3%2BQ1Sq3yoA39VUCxAJtEbIiXgTpWcWfbfXUrcuSK%2F6xEqTAupJZt0fGfKd6I6byVG1K0ZBw0FMP%2FYIxMC%2FiyngIZaQrkhigGd5QeykQuNPmIcxHKUVSQPA%3D%3D HTTP/1.1
Host: b85f4e968aaefd001d2f659b5c8bcee9.r2.cloudflarestorage.com
User-Agent: rclone/v1.59.0-beta.6124.6f91198b5
Content-Length: 5242880
Authorization: XXXX
Content-Md5: wnGH5uTxr9F796FZIvqZlw==
Expect: 100-Continue
X-Amz-Content-Sha256: 6e2cd80fba625953c16e3357d6ac570152d26acca9d0750b5af3dd10d8956f8d
X-Amz-Date: 20220514T152250Z
Accept-Encoding: gzip

2022/05/14 11:22:50 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/05/14 11:22:50 DEBUG : pacer: low level retry 1/2 (error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your secret access key and signing method. 
	status code: 403, request id: , host id: )
2022/05/14 11:22:50 DEBUG : pacer: Rate limited, increasing sleep to 10ms

thanks much,
david

What rclone version are you using? There is a beta version that has R2 config native

hi, correct, using latest rclone beta.

in my testing, there are a number of tweaks that work around the primal issues.

NOTE2ALL: rclone is an open source application that works with dozens of providers, aws, wasabi, google drive, azure, sftp, etc…
you are welcome to join the rclone forum and help make R2 a first class provider.
here are a few rclone topic you might want to check out, i am @asdffdsa, jojothehumanmonkey

https://forum.rclone.org/t/rclone-and-cloudflare-r2-issues/30774/4?u=asdffdsa
https://forum.rclone.org/t/cloudflare-r2-now-working-with-rclone/30730