开放策略代理:无法从 S3 下载捆绑包

发布于 2025-01-13 02:59:13 字数 438 浏览 5 评论 0原文

我已经在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇柔作态 2025-01-20 02:59:13

您无法使用 AWS 控制台中的 URL,但需要使用捆绑文件的对象 URL,该文件应如下所示:

https://my-opa-bucket.s3.us-west-2.amazonaws.com/bundle.tar.gz

如果您在 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:

https://my-opa-bucket.s3.us-west-2.amazonaws.com/bundle.tar.gz

If you click the bundle file in the S3 console, you'll see the correct URL under "Object URL":

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文