# Elasticsearch Node.js client 7.6.1 ConnectionError: connect EADDRNOTAVAIL

**URL:** <https://discuss.elastic.co/t/elasticsearch-node-js-client-7-6-1-connectionerror-connect-eaddrnotavail/240753>\
**Category:** Elasticsearch\
**Tags:** docker, language-clients\
**Created:** [July 10, 2020, 7:40pm UTC](https://discuss.elastic.co/t/elasticsearch-node-js-client-7-6-1-connectionerror-connect-eaddrnotavail/240753 "2020-07-10T19:40:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yman](https://avatars.discourse-cdn.com/v4/letter/y/da6949/32.png) [@yman](https://discuss.elastic.co/u/yman)\
**Post date:** [July 10, 2020, 7:40pm UTC](https://discuss.elastic.co/t/elasticsearch-node-js-client-7-6-1-connectionerror-connect-eaddrnotavail/240753/1 "2020-07-10T19:40:42Z")

</div>

Hi,

I am running into an interesting issue with a docker container running in kubernetes

We are running a Node application that is using the client found here [https://www.npmjs.com/package/@elastic/elasticsearch](https://www.npmjs.com/package/@elastic/elasticsearch) version 7.6.1. Our elastic cluster version is 6.2.0.

This is an example of the error we are getting:

```auto
Failed to get Access History Summary from Elasticsearch. StackTrace: ConnectionError: connect EADDRNOTAVAIL 10.100.30.1:9200 - Local (172.16.35.171:0)
    at onResponse (/opt/gemalto/src/node_modules/@elastic/elasticsearch/lib/Transport.js:214:13)
    at ClientRequest.<anonymous> (/opt/gemalto/src/node_modules/@elastic/elasticsearch/lib/Connection.js:98:9)
    at ClientRequest.emit (events.js:311:20)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:311:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

```

What is weird is that this pod was running just fine and then started having this issue. A restart of the deployment fixed the issue.

Any ideas what might be causing the problem?

Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 7, 2020, 7:40pm UTC](https://discuss.elastic.co/t/elasticsearch-node-js-client-7-6-1-connectionerror-connect-eaddrnotavail/240753/2 "2020-08-07T19:40:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
