This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
HelenusInvalidRequestException: cannot parse '0' as hex bytes #108
Comments
Here is a more precise (copy and pasteable) demonstration of the bug: $ cassandra -v
1.2.5 cqlsh path$ cqlsh --version
cqlsh 3.0.2
cassandra-cli path$ cassandra-cli
Connected to: "Test Cluster" on 127.0.0.1/9160
Welcome to Cassandra CLI version 1.2.5
This is the same error as in the helenus path below. Looks like Thrift / CQL3 incompatibility. helenus pathvar helenus = require('helenus');
var pool = new helenus.ConnectionPool({
hosts: ["localhost:9160"],
keyspace: "foo"
});
pool.connect(function (error) {
if (error) return console.error(error);
pool.cql("INSERT INTO foos (foo, column, value) VALUES (?, ?, ?);", ['foo.bar.baz','1370528287:170164551', 0], function (error) {
console.dir(error);
});
});
// outputs: { [HelenusInvalidRequestException: cannot parse '0' as hex bytes] name: 'HelenusInvalidRequestException' }
pool.connect(function (error) {
if (error) return console.error(error);
pool.cql("INSERT INTO foos (foo, column, value) VALUES ('foo.bar.baz', '1370528287:170164551', 0);", function (error) {
console.dir(error);
});
});
// outputs: { [HelenusInvalidRequestException: cannot parse '0' as hex bytes] name: 'HelenusInvalidRequestException' } |
Found a solution, the var helenus = require('helenus');
var pool = new helenus.ConnectionPool({
hosts: ["localhost:9160"],
keyspace: "foo",
cqlVersion: "3.0.0"
}); There should be a sane error messages if |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Versions and setup:
helenus@0.6.2
In
helenus
:The above results in:
:/
The text was updated successfully, but these errors were encountered: