qoobaa / s3

Library for accessing S3 objects and buckets, supports EU and US buckets
MIT License
258 stars 112 forks source link

S3::Error::NoSuchKey: The specified key does not exist #122

Open sieudang2002 opened 7 years ago

sieudang2002 commented 7 years ago

Hi there,

I got this bug when I have trying to using bucket.objects.find. used version : 0.3.24


    amazon = S3::Service.new(access_key_id: S3_CREDENTIALS[:access_key_id],
                             secret_access_key: S3_CREDENTIALS[:secret_access_key])

    bucket = amazon.buckets.find(S3_CREDENTIALS[:bucket])

    file = bucket.objects.find(file_name)

    file.content

The problem is the files exist in the bucket, but can't be found

Can anyone help me please?,

Thanks, Luong

arthurnn commented 7 years ago

Not sure.. Maybe that user don't have read access to the file?

rathod4rathod commented 6 years ago

NOSUCHKEYTHE SPECIFIED KEY DOES NOT EXIST. (TRUNCATED...) NOSUCHKEY (CLIENT): THE SPECIFIED KEY DOES NOT EXIST. - NOSUCHKEYTHE SPECIFIED KEY DOES NOT EXIST.98690/8477126/6/1.JPG.INSTRUCTION4729FB8F2D74DDE5WP1USTWJP9GE+CC5UDDKZGCUTRWC725KYLQAV/EP0L3+HPS4+BXDKOGVRS2IR2O2R3AOYFPPB0A= " HEIGHT="150PX" WIDTH="150PX"> i got this type of error