AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint

后端 未结 15 456
南旧
南旧 2020-12-02 10:33

I am trying to delete uploaded image files with the AWS-SDK-Core Ruby Gem.

I have the following code:

require \'aws-sdk-core\'

def pull_picture(pict         


        
15条回答
  •  北海茫月
    2020-12-02 11:27

    I got this error when I tried to access a bucket that didn't exist.

    I mistakenly switched a path variable with the bucket name variable and so the bucket name had the file path value. So maybe double-check, if the bucket name that you set on your request is correct.

提交回复
热议问题