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

Unexpected token u in JSON at position 0 #64

Open
nrmohan opened this issue Sep 16, 2020 · 3 comments
Open

Unexpected token u in JSON at position 0 #64

nrmohan opened this issue Sep 16, 2020 · 3 comments

Comments

@nrmohan
Copy link

nrmohan commented Sep 16, 2020

Getting the following exception,

Unexpected token u in JSON at position 0

image

thanks

@thomashzhang
Copy link

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!

@tmsdnl
Copy link

tmsdnl commented Sep 22, 2020

Tool is expecting “keyExpressionValues” argument.

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

@gminn
Copy link

gminn commented Dec 2, 2020

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.

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

4 participants