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

TypeError: undefined is not a function #2

Closed
indapublic opened this issue Apr 9, 2014 · 3 comments
Closed

TypeError: undefined is not a function #2

indapublic opened this issue Apr 9, 2014 · 3 comments

Comments

@indapublic
Copy link

CentOS 6.5 64-bit. All pre-requisites installed.

[root@default DynamoDBtoCSV]# node dynamoDBtoCSV.js -t events_log_080414 > events_log_080414.csv

/var/www/html/DynamoDBtoCSV/dynamoDBtoCSV.js:4
var dynamoDB = new AWS.DynamoDB.Client();
^
TypeError: undefined is not a function
at Object. (/var/www/html/DynamoDBtoCSV/dynamoDBtoCSV.js:4:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

@edasque
Copy link
Owner

edasque commented Apr 9, 2014

I don't really have an environment to test this anymore but I am guessing the aws-sdk method signatures changed in 2.0 and we might require a pre-2.0 version? I would try installing a previous version, if I were you.

@indapublic
Copy link
Author

Yeah, problem is solved by changing

var dynamoDB = new AWS.DynamoDB.Client();

to

var dynamoDB = new AWS.DynamoDB();

@edasque
Copy link
Owner

edasque commented Apr 10, 2014

Feel free to submit a PR for this change?

@edasque edasque reopened this Apr 10, 2014
@edasque edasque closed this as completed Apr 10, 2014
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

2 participants