Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream upload to S3 fails quoting unsupported HTTP version. #34

Closed
kulkarnih opened this issue Jan 24, 2015 · 1 comment
Closed

Stream upload to S3 fails quoting unsupported HTTP version. #34

kulkarnih opened this issue Jan 24, 2015 · 1 comment

Comments

@kulkarnih
Copy link
Contributor

I'm trying to stream a file to an S3 instance. I get the generic error "Unable to initiate stream upload [Invalid upload ID". But the response from S3 indicates unsupported HTTP version.

<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>HttpVersionNotSupported</Code>
<Message>The HTTP version specified is not supported.</Message>
<RequestId>788D2319F7FE4EAF</RequestId>
</Error>
@kulkarnih
Copy link
Contributor Author

On further testing, found out that this happens only for files with space in the name.

The objectName needs to be urlencoded before making the request.

// Send the initiate request
var req = this.client.request('POST', this.objectName + '?uploads', this.headers),

https://github.com/nathanoehlman/knox-mpu/blob/master/lib/multipartupload.js#L85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant