appsattic/node-awssum — Issue #5: S3 PutObject example not working
Author: standingwave
Created: 2012-03-01 20:09:33+00:00
State: open

Just trying the library out and I can't get this example to work. The first part of the example works in that I'm able to get a list of my S3 buckets. When I try to upload a test file I get this error response:

{ Body: '',
Headers:
{ 'x-amz-request-id': 'C3A64A352D1040DA',
'x-amz-id-2': 'quYON1SumP6CVmFZAteJQbudyUKzJ9CbaTzw977cftIvYarUECXRz67GzhAPN7fT',
'content-type': 'application/xml',
'transfer-encoding': 'chunked',
date: 'Thu, 01 Mar 2012 20:06:33 GMT',
nncoection: 'close',
server: 'AmazonS3' },
StatusCode: 301,
Code: 'AwsSum-IncorrectStatusCode',
Message: 'Status code was not expected' }

I'm not sure why AWS would be returning a 301 but clearly it's not what awssum is expecting. Has the S3 api or endpoint changed perhaps? Any insight would be greatly appreciated.