ListObjectsAsync Throws AmazonS3Exception: The specified key does not exist. #2448
-
When we call
Am I missing anything here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@StrangeWill The
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Policy:
We also tried setting "Everyone" access to list the bucket (nothing sensitive in it, but it's just for a test anyway), and still we're getting the error. I've tried using access keys from both the No problem with our Minio systems, only Amazon's S3 stuff. |
Beta Was this translation helpful? Give feedback.
-
OK, since we're bouncing between AWS and other S3 systems, found the underlying issue: 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. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
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.