# Elasticsearch-js ConnectionError: socket hang up

**URL:** <https://discuss.elastic.co/t/elasticsearch-js-connectionerror-socket-hang-up/321359>\
**Category:** Elasticsearch\
**Tags:** docker, language-clients\
**Created:** [December 16, 2022, 2:31am UTC](https://discuss.elastic.co/t/elasticsearch-js-connectionerror-socket-hang-up/321359 "2022-12-16T02:31:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinhyuck\_Cha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jinhyuck_cha/32/114522_2.png) [@Jinhyuck\_Cha](https://discuss.elastic.co/u/Jinhyuck_Cha)\
**Post date:** [December 16, 2022, 2:31am UTC](https://discuss.elastic.co/t/elasticsearch-js-connectionerror-socket-hang-up/321359/1 "2022-12-16T02:31:50Z")

</div>

hi  
I'm try to make github ci test flow in my project  
But there are a issue about ConnectionError: socket hang up  
I don't know what it is happen. Because this docker-file is well work in my local dev environment.  
How can I fix it?

This is my error code in github ci flow!

```auto
    console.log
      port: 19200

      at test/apis/images-sdk.e2e-spec.ts:40:17

  ● Image Resources › Image query test (ES) › List Image › Can list images

    ConnectionError: socket hang up - Local: 127.0.0.1:42626, Remote: unknown:unknown

      at ClientRequest.onError (../../node_modules/@elastic/elasticsearch/lib/Connection.js:123:16)

```

---

<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:** [January 13, 2023, 2:32am UTC](https://discuss.elastic.co/t/elasticsearch-js-connectionerror-socket-hang-up/321359/2 "2023-01-13T02:32:12Z")

</div>

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