Getting boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden when uploading file

前端 未结 3 797
天涯浪人
天涯浪人 2020-12-19 20:45

There are a few other questions on this issue:

boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden

S3ResponseError: S3ResponseError: 403 Forbidden

3条回答
  •  星月不相逢
    2020-12-19 20:55

    I had this issue too where I tried validate=False, and ntpdate, and giving "Authenticated Users" the permission to upload/delete on AWS. My resolution is probably rare, but just in case anyone else did this:

    I started running my Django app with credentials in my environment for my bucket 'xyz'. Then I changed the credentials to upload to my friend's bucket 'abc'. There was a mismatch between these credentials, so all I needed to do was restart gunicorn.

提交回复
热议问题