Export not working because of -v parameter
slobodankotur opened this issue · 0 comments
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