edasque / DynamoDBtoCSV

Dump DynamoDB data into a CSV file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected token u in JSON at position 0

nrmohan opened this issue · comments

Getting the following exception,

Unexpected token u in JSON at position 0

image

thanks

I am also getting this issue. I've tried the following commands, all producing the same error:

node dynamoDBtoCSV.js -t <table>
node dynamoDBtoCSV.js -t <table> -d
node dynamoDBtoCSV.js -t <table> -c

I did make sure to run npm install first. Thanks!

Tool is expecting “keyExpressionValues” argument.

Add -v “{}” as an argument. I also recommend adding region.

I had the same issue and node dynamoDBtoCSV.js -t table_name -v "{}" worked for me (replace table_name with your table name)! I then added > output.txt to redirect the output (instead of printing to the terminal). {} is where you specify the query, but you can leave it as {} and it will grab everything.