Skip to content

AWS SDK .NET 4.5 "Error unmarshalling response back from AWS. HTTP Status Code: 200 OK" on ListObjectsV2 #2103

Answered by ashishdhingra
cstro2021 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cstro2021,

Good afternoon.

Looks like you are using the API incorrectly. If you refer service API documentation for S3: ListObjectsV2, the there is a prefix parameter in addition to Bucket parameter. Bucket parameter should be the name of the bucket, not the path down to the specific key (there is no concept of folder in S3, it is represented as a key). So you need to use the Prefix property if you want to narrow down results to specific folders. In your case, below is the minimal example:

Imports System.Collections.ObjectModel
Imports System.Windows.Forms
Imports Amazon
Imports Amazon.S3
Imports Amazon.S3.Model

Module Module1

    Sub Main()
        Dim filecol As ObservableCollection(

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@cstro2021
Comment options

@cstro2021
Comment options

Answer selected by ashishdhingra
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. s3
2 participants