appsattic/node-awssum — Issue #2: Error on S3 PutObject
Author: ashchan
Created: 2012-01-10 05:30:18+00:00
State: open

Calling:

var options = {
BucketName : 'pie-18',
ObjectName : 'test-object.txt',
ContentLength : '14',
Body : "Hello, World!\n",
};

s3.PutObject(options, function(err, data) {});

Error:

[Error: First argument needs to be a number, array or string.]

The error happened on ln 365 of awssum.js:

else if ( spec.type === 'header-base64' ) {
setHeader( options.forms, name, (new Buffer(args[argName])).toString('base64') );
}

More specified, when this happened argName was ContentMD5.

Node version is 0.6.7. Project's tests pass without any problem.