KoteiIto / node-athena

a nodejs simple aws athena client
MIT License
105 stars 73 forks source link

TypeError: Cannot read property 'length' of undefined #23

Closed EugeneHerasymchuk closed 6 years ago

EugeneHerasymchuk commented 6 years ago

This problem appears approximately every time I use execute(sql).toPromise() After debugging I noticed that error throws in this place

https://github.com/KoteiIto/node-athena/blob/a3f84b9d8659dbae245585435a34f237a023ac1e/build/lib/stream.js#L66

TypeError: Cannot read property 'length' of undefined at AthenaStream. (/var/task/node_modules/athena-client/build/lib/stream.js:93:40) at next (native) at fulfilled (/var/task/node_modules/athena-client/build/lib/stream.js:4:58)

The version of athena-client is 2.0.0

KoteiIto commented 6 years ago

In v2.0.0, bugs may occur in parsing csv. Can you use v2.1.0 or higher.

EugeneHerasymchuk commented 6 years ago

Thank you. For anyone with the problem. I installed 2.1.2 version and this error was gone.