TimeUUID problems

129 views
Skip to first unread message

ccar...@gmail.com

unread,
Jan 18, 2013, 5:04:08 PM1/18/13
to hel...@googlegroups.com
Why would I be getting the following error in my node app when Helenus supports TimeUUIDs and I am trying to insert a column name : value pair where the comparator is of the TimeUUIDType?

/Users/ccarollo/node_modules/helenus/node_modules/helenus-thrift/lib/thrift/connection.js:90
throw e;
^
TypeError: Object 7549a0f0-6061-11e2-ab89-eb992610e0b1 has no method 'toBuffer'
at Serializers.encodeTimeUUID [as serialize] (/Users/ccarollo/node_modules/helenus/lib/marshal/serializers.js:178:19)
at ColumnFamily.getColumnValidator (/Users/ccarollo/node_modules/helenus/lib/column_family.js:217:46)
at ColumnFamily.insert (/Users/ccarollo/node_modules/helenus/lib/column_family.js:246:28)
at /Users/ccarollo/Code/subpup/code/cloud/services/crawl/server.js:129:16
at Keyspace.get (/Users/ccarollo/node_modules/helenus/lib/keyspace.js:58:11)
at onComplete (/Users/ccarollo/node_modules/helenus/lib/keyspace.js:90:5)
at onReturn (/Users/ccarollo/node_modules/helenus/lib/connection.js:357:7)
at exports.Connection.connection.addListener.self.transport.receiver.client._reqs.(anonymous function) (/Users/ccarollo/node_modules/helenus/node_modules/helenus-thrift/lib/thrift/connection.js:80:11)
at Object.CassandraClient.recv_describe_keyspace (/Users/ccarollo/node_modules/helenus/lib/cassandra/Cassandra.js:6641:12)
at exports.Connection (/Users/ccarollo/node_modules/helenus/node_modules/helenus-thrift/lib/thrift/connection.js:83:37)

beat...@gmail.com

unread,
Mar 25, 2013, 1:11:12 PM3/25/13
to hel...@googlegroups.com
I'm running into the same issue. Has anyone managed to fix this? Or am I just doing it wrong? An example of inserting a column key/value pair with a timeUUID as the column name would help.

Thanks

beat...@gmail.com

unread,
Mar 26, 2013, 6:58:04 AM3/26/13
to hel...@googlegroups.com, beat...@gmail.com
I found and fixed the issue, and submitted a pull request on github. See https://github.com/simplereach/helenus/pull/97
Reply all
Reply to author
Forward
0 new messages