No live connections error when using ElasticSearch API

Using the ElasticSearch API in node.js, after installing the dependency and running the node.js app, you will get the following error.

Elasticsearch ERROR: 2017-04-11T04:40:01Z
  Error: Request error, retrying
  POST http://localhost:9200/reports/report/_search?size=5000000 => connect ECONNREFUSED 127.0.0.1:9200
      at Log.error (/home/kartik/Documents/Project/Validus/validus_reports_server/node_modules/elasticsearch/src/lib/log.js:225:56)
      at checkRespForFailure (/home/kartik/Documents/Project/Validus/validus_reports_server/node_modules/elasticsearch/src/lib/transport.js:240:18)
      at HttpConnector.<anonymous> (/home/kartik/Documents/Project/Validus/validus_reports_server/node_modules/elasticsearch/src/lib/connectors/http.js:162:7)
      at ClientRequest.wrapper (/home/kartik/Documents/Project/Validus/validus_reports_server/node_modules/lodash/lodash.js:4968:19)
      at emitOne (events.js:77:13)
      at ClientRequest.emit (events.js:169:7)
      at Socket.socketErrorListener (_http_client.js:258:9)
      at emitOne (events.js:77:13)
      at Socket.emit (events.js:169:7)
      at emitErrorNT (net.js:1256:8)

{ [Error: No Living connections]
  message: 'No Living connections',
  body: undefined,
  status: undefined }

      

Help me solve this problem.

+3
node.js elasticsearch


source to share


No one has answered this question yet

Check out similar questions:

6
Stripe Connection Error from Firebase Cloud Function
4
No live connection Error connecting Elasticsearch in nodejs
2
Connection error when trying to connect nodejs to SQL Server
0
Couldn't identify process error while connecting angular 5 with ElasticSearch?
0
How do I go about doing a search on a search correctly using the search terms search from Node.js?
0
kibana failed to run on virtual machine
0
ConnectionError: Failed to connect to <sqlserverdb> - connect EACCES <sqlserverdb>
0
Failed to start npm
0
Can't run many queries on my own elasticsearch server
0
How to search through elasticsearch in Node.js?



All Articles
Loading...
X
Show
Funny
Dev
Pics