【问题标题】:ClientError HeadObject when collecstatic AWS S3集体AWS S3时的ClientError HeadObject
【发布时间】:2022-01-02 21:13:47
【问题描述】:

我有一个 VPS,我正在尝试使用 AWS S3 收集静态 (Django)。

当我尝试python manage.py collectstatic 时出现此错误:

botocore.exceptions.ClientError: An error occurred (400) when calling the HeadObject operation: Bad Request

更多上下文

我有另一个具有相同项目和工作的 VPS。 我使用相同的 aws 凭据(用户和存储桶)进行了测试,我得到了同样的错误。 本地测试有效。

【问题讨论】:

    标签: django amazon-web-services amazon-s3


    【解决方案1】:

    我的解决方案:把这个 envar AWS_DEFAULT_REGION=sa-east-1.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-07
      • 2018-03-20
      • 1970-01-01
      • 1970-01-01
      • 2021-07-26
      • 2020-02-18
      • 2020-01-21
      • 1970-01-01
      相关资源
      最近更新 更多