s3
s3 copied to clipboard
S3::Error::NoSuchKey: The specified key does not exist
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
Not sure.. Maybe that user don't have read access to the file?
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