git-annex-remote-rclone / git-annex-remote-rclone

Use rclone supported cloud storage providers with git-annex
GNU General Public License v3.0
189 stars 29 forks source link

Remote connection to Tencent COS reported an error: InvalidRequest: Missing required header for this request: Appid, Bucket format should be <bucketname>-<appid> #75

Closed crazyxiaoj closed 11 months ago

crazyxiaoj commented 11 months ago

I have a rclone remote: "Cos", It is configured as follows:

Options:
- type: s3
- provider: TencentCOS
- secret_access_key: kHZeeS1UntlNn02rafXAXgqnlndKsXXX
- endpoint: cos.ap-nanjing.myqcloud.com
- acl: default
- force_path_style: false

But when I run git annex initremote TencentCos type=external externaltype=rclone target=Cos prefix=git-annex chunk=50MiB encryption=shared mac=HMACSHA512 rclone_layout=lower, it reports an error: InvalidRequest: Missing required header for this request: Appid, Bucket format should be <bucketname>-<appid>.

Then, I tired this code: git annex initremote TencentCos type=external externaltype=rclone target=Cos:other-note-repository-1323025692 prefix=git-annex chunk=50MiB encryption=shared mac=HMACSHA512 rclone_layout=lower, which added :<bucketname>-<appid> after Cos. But it reports same error.

I tried to access "Cos" directly using rclone, and when I run rclone ls Cos:other-note-repository-1323025692, CMD did not report an error, proving that rclone had access to "Cos".

Is there any solution to this? Thank you for your attention!

crazyxiaoj commented 11 months ago

I think I misunderstood the meaning of prefix😢,After setting the prefix item to other-note-repository-1323025xx, it works.