-
Notifications
You must be signed in to change notification settings - Fork 42
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
'Unexpected message QUERY, expecting CREDENTIALS' #44
Comments
Hi! |
I found the bug. It looks like when the username / password are incorrect, instead of callback with the auth error, it continues to try to "USE" the keyspace. I think for now, you can check if the credentials you are passing are correct. |
Hi Jorge, Looks like I'm using 0.2.11 according to package.json. I just did and update to be sure I was on the latest. |
Ok thanks. |
My connection succeeds when using cqlsh (thrift) with the following message (same credentials as passed into the node client):
The only difference is that I'm using the native port 9042 for the node client. |
Given your statement I found the spot in startupcallback that your saying didn't have the right error handler. When I put a handler there the message is:
Which is odd as this.options.username and this.options.password are populated with the correct username and password in Connection.authenticate. |
That narrows it down... |
Ok found an issue with 2.0.1 from https://issues.apache.org/jira/browse/CASSANDRA-6203 and was fixed for the latest. Thanks for the help in finding the real error message. I'll leave this open for the printing of the real error from startupcallback. |
Thanks! I'll fix it during the day |
Now fixed, added a unit test |
Using cassandra 2.0.1 I'm getting the error message from the title.
I'm using the following to initialize the connection:
The response is:
It would appear it's expecting a credentials frame rather than a query frame. Any suggestions on getting a connection?
Also I am able to connect to this server from cqlsh on the machine I'm running node from.
The text was updated successfully, but these errors were encountered: