Skip to content

S3 -> NotFound: UnknownError

0

Bucket name Test Code Error

asked 2 years ago794 views

1 Answer
0

What does the endpoint variable passed to S3Client contain? It's probably referring to a region other than eu-central-1 that hosts the bucket. For example, if you connect to the default endpoint in us-east-1, S3 would return a 404 to indicate that your bucket isn't found there, since it exists in eu-central-1.

I think you can simply remove the whole endpoint specification. The region specification you have in your code already should suffice.

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.