Cloudflare R2 sync: Credential access key has length 40, should be 32

Hi,

I'm setting up S3 sync with Cloudflare R2. I created an API key, which is 40 characters in length.

When I try to sync I get this error:

InvalidArgument: Credential access key has length 40, should be 32 status code: 400, request id: , host id: (Provider: S3)

It looks like SiYuan expects a key length of 32 characters. But, Cloudflare does not give an option for API key length, it just uses a 40 character length.

Have I missed something?

Thanks,

Steve

    Welcome to here!

    Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.

    Signup About
    Please input reply content ...
    • 88250

      Hi, I just created an API Token test on Cloudflare R2, and the length of the S3 access key is 32.

      image.png

      I guess you may not have created an R2 API Token, so you should create one from here:

      image.png