zhangruiyu / tencent_cos

Apache License 2.0
22 stars 10 forks source link

Missing required header for this request: Appid Bucket #3

Closed lizhuoyuan closed 2 years ago

lizhuoyuan commented 2 years ago
[Flutter Tencent COS] putObject error content: <?xml version='1.0' encoding='utf-8' ?>
<Error>
    <Code>InvalidRequest</Code>
    <Message>Missing required header for this request: Appid, Bucket format should be &lt;bucketname&gt;-&lt;appid&gt;</Message>
    <Resource>deerlearn.cos.ap-singapore.myqcloud.com/1656384952108.png</Resource>
    <RequestId>NjJiYTZkYjhfYThlZjc4MGJfMWFjZWNfMzE1NzczNw==</RequestId>
    <TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0N2FiMmYwMTY2MDExNTVkYjZlZjEyOTBjYTg3YWFkMTczYTlmZTJmOTljMmY3ZGQxNzVjYzllZDljMGM4YWE3ZWI=</TraceId>
</Error>

发现没有提供设置appid的地方,请问这是什么原因呢

lizhuoyuan commented 2 years ago

是我bucketname写错了