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


source to share





All Articles