edasque / DynamoDBtoCSV

Dump DynamoDB data into a CSV file
Apache License 2.0
471 stars 152 forks source link

"You must specify a table" #68

Open Spookytheboy opened 3 years ago

Spookytheboy commented 3 years ago

I've filled out my config.json file and attempting to run the script, but getting a recurring error "You must specify a table" no matter what I attempt. I've tried wrapping my table name in quotes but no dice.

e.g: node dynamoDBtoCSV.js -t "tableName" > output.csv

npartovi commented 3 years ago

I am also getting the same issue as above. Followed the commands on the readme and running into the same issue. Not sure why but the tableName is not being parsed through commander it seems.

Qambar commented 3 years ago

same

EA-Williams commented 3 years ago

I'm experiencing the same issue.

EA-Williams commented 3 years ago

I think one of the 4 modules it depends on (aws-sdk, commander, dynamodb-marshaler, papaparse) may have updated recently, causing incompatibilities with dynamoDBtoCSV.

I solved the issue by replacing the node_modules folder in my DynamoDBtoCSV folder with one containing older versions, sent to me by a colleague. Perhaps you could install the previous versions of these modules.

My compatible versions are:

Also, my colleague recommended adding "-v{}" on the end like so:

node dynamoDBtoCSV.js -t TABLE_NAME -f FILE_NAME.csv -v{}

jvendrig commented 2 years ago

See https://github.com/edasque/DynamoDBtoCSV/pull/66

Exceed-Arthur commented 2 years ago

Second the recommendation for "-v{}". No need to change the dependencies. The error can be fixed at 'config.json'. #66 actually solves it perfectly. I just copied the code of config.json from that branch and it worked. I hope anyone who encounters this issue sees #66. Should be main branch. Thank you everyone for building this program and the wonderful documentation. -random guy

amaya-ruiz commented 2 years ago

Hi, sorry, I don't fully understand what is necessary to do to fix it.