开放策略代理:无法从 S3 下载捆绑包
我已经在 config.yaml 中设置了 s3 相关信息。这个 get 调用也返回了 200 ok 响应。
GET 调用:https://s3。 console.aws.amazon.com/s3/object/{bucket_name}/policy.tar.gz
但是下载时,显示错误如下
{“level”:“错误”,“msg”:“捆绑包加载失败:捆绑包读取失败:存档读取失败:gzip:无效标头”,“name”:“aut hz","plugin":"bundle","time":"2022-03-10T22:35:32+05:30"}
任何人都可以帮助解决此问题
I have set s3 related information as in config.yaml.This get call also returned 200 ok response.
GET call: https://s3.console.aws.amazon.com/s3/object/{bucket_name}/policy.tar.gz
But when download, it showing the error as below
{"level":"error","msg":"Bundle load failed: bundle read failed: archive read failed: gzip: invalid header","name":"aut
hz","plugin":"bundle","time":"2022-03-10T22:35:32+05:30"}
Can anyone help to fix this issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法使用 AWS 控制台中的 URL,但需要使用捆绑文件的对象 URL,该文件应如下所示:
如果您在 S3 控制台中单击捆绑文件,您将看到正确的 URL在“对象 URL”下:
You can't use the URL from the AWS console, but will need to use the object URL for the bundle file, which should look something like this:
If you click the bundle file in the S3 console, you'll see the correct URL under "Object URL":