Skip to content

Error Handling for SimpleUploadCommand #3097

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

You must be logged in to vote

@lklein53 Thanks for opening feature request. Looking at SimpleUploadCommand.ExecuteAsync(), you are correct that it doesn't expose underlying PutObjectResponse object. If you check PutObject API documentation, it returns bunch of headers along with HTTP status code. In case of error from the service, SDK in this scenario, uses S3ReponseUnmarshaller.UnmarshallException() and return it to the calling code as AmazonS3Exception exception object.

Are you not getting exception in case of error from service or some environmental exception conditions? Please confirm.

Thanks,
Ashish

Replies: 4 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. s3
2 participants
Converted from issue

This discussion was converted from issue #3093 on November 08, 2023 18:16.