Skip to content

ListObjectsAsync Throws AmazonS3Exception: The specified key does not exist. #2448

Answered by StrangeWill
StrangeWill asked this question in Q&A
Discussion options

You must be logged in to vote

OK, since we're bouncing between AWS and other S3 systems, found the underlying issue: ForcePathStyle = true -- doing this on AWS while it works for everything else we do (uploading/downloading/etc.), will cause an error while listing objects.

We actually have code to disable this when a ServiceURL is not provided, but one was provided for our AWS endpoints. I'll be adjusting that -- thanks for the help on this, and this can be a chunk of knowledge in case anyone else runs into this.

Not sure if this is undesired behavior, but at least I have a workaround.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ashishdhingra
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by StrangeWill
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. s3
2 participants