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

node-cassandra-cql :: Error - Socket was closed #114

Open
iflairBhavin opened this issue Dec 30, 2015 · 0 comments
Open

node-cassandra-cql :: Error - Socket was closed #114

iflairBhavin opened this issue Dec 30, 2015 · 0 comments

Comments

@iflairBhavin
Copy link

Respected Sir,

When i try to connect in my local machine (ubuntu 10.04) i am getting below error. Can you please give me any solution to fix that. Thanks in advance for your help.

My Code:

var loopback = require('loopback');
var app = loopback();
var cql = require('node-cassandra-cql');
var client = new cql.Client({hosts: ['192.168.1.40:9042'], keyspace: 'catalog'});
client.connect(function established(err){if (err) console.log(err);
else console.log('Connection with Cassandra established');});
app.listen(9042);

Getting Error :

{ [PoolConnectionError]
name: 'PoolConnectionError',
info: 'Represents a error while trying to connect the pool, all the connections failed.',
individualErrors:
[ { [Error: Socket was closed]
message: 'Socket was closed',
info: 'Cassandra Driver Error',
isServerUnhealthy: true } ] }

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