AWS S3 bucket file fails to read by GetObject(): NoSuchKey

Viewed 20

My code is trying to read a .json file from s3 bucket.

It calls the AWS SDK API : go/pkg/mod/github.com/aws/aws-sdk-go@v1.38.22/service/s3/api.go:GetObject() .

The file has read permissions for "Object owner (your AWS account)".

The file size is 48 MB.

I can download the file manually from AWS S3 console in browser and parse it using jq fine.

Still the GetObject() returns an error with the code NoSuchKey.

What could be the reason? How to debug this?

0 Answers
Related