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

Export not working because of -v parameter #62

Open
slobodankotur opened this issue Aug 20, 2020 · 0 comments
Open

Export not working because of -v parameter #62

slobodankotur opened this issue Aug 20, 2020 · 0 comments

Comments

@slobodankotur
Copy link

slobodankotur commented Aug 20, 2020

Hello,

Since this change:
f524ce4

export from DynamoDB was not working for me anymore.

I was getting this exception:
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Object. (/opt/DynamoDBtoCSV/dynamoDBtoCSV.js:89:35)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

My command was this and it was working fine:
node /opt/DynamoDBtoCSV/dynamoDBtoCSV.js -t table_name -f /opt/DynamoDBtoCSV/csv/export.csv

After your merge pull I had to change it to this to make it work again:
node /opt/DynamoDBtoCSV/dynamoDBtoCSV.js -v "{}" -t table_name -f /opt/DynamoDBtoCSV/csv/export.csv

Will you be changing it as it was or -v parameter will be mandatory now?

Thanks in advance.
Slobodan

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

1 participant