Skip to content

S3 Parallel Object Uploads Eventually Cause Exception: 'The response ended prematurely.' #2530

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

You must be logged in to vote

@kakins Apologies for the delayed reply. Somehow, the issue is not reproducible using the code you shared. Attaching it below for reference:

using Amazon.S3;
using Amazon.S3.Model;
using System.Diagnostics;

Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.SystemDiagnostics;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener());

IAmazonS3 _s3client = new AmazonS3Client();
var testRunner = new TestRunner(new S3Service(_s3client));
await testRunner.Upload();

Console.WriteLine("FINISHED");
public class TestRunner
{
    private readonly S3Service _s3Service;

Replies: 6 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

@ashishdhingra
Comment options

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
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
3 participants