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

Not able to import - Unhandled promise rejection (rejection id: 1): TypeError: value.get is not a function #7

Open
athreya92 opened this issue Sep 18, 2018 · 0 comments

Comments

@athreya92
Copy link

athreya92 commented Sep 18, 2018

Hi,

First of all, thanks for this tool.

Export works just fine. Import works for all of the tables, except one. I get the following error stack.,

Finding tables in keyspace: fleet_manager_db

Reading metadata for table: gps_pathdata
Creating read stream from: gps_pathdata.json
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: value.get is not a function
(node:911) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: value.get is not a function
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: value.get is not a function
(node:911) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: value.get is not a function
Streaming 4 rows to table: gps_pathdata
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2)
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)
(node:911) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 4)
{ TypeError: value.get is not a function
at Encoder.__dirname.encodeTuple (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:637:36)
at Encoder.encode (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:1272:18)
at Encoder.__dirname.encodeList (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:533:24)
at Encoder.encode (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/encoder.js:1272:18)
at ExecuteRequest.writeQueryParameters (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/requests.js:115:38)
at ExecuteRequest.write (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/requests.js:82:8)
at whileProcess (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:209:40)
at next (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/utils.js:811:7)
at Object.whilst (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/utils.js:801:3)
at WriteQueue.process (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:197:9)
at WriteQueue.run (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:191:10)
at WriteQueue.push (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/writers.js:186:8)
at Connection.sendStream (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/connection.js:415:19)
at RequestHandler._sendOnConnection (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:182:19)
at /snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:169:10
at iterateSingleCallback (/snapshot/cassandra-exporter/node_modules/cassandra-driver/lib/request-handler.js:100:14)
coordinator: '127.0.0.1:9042',
query: 'INSERT INTO "gps_pathdata" ("usecase","start_location_name","end_location_name","location") VALUES (?,?,?,?)' }

Very strange.

Can you please let me know why this is happening.
I would also appreciate if you help me with the solution/workaround to this problem

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