# HTTP API returns read ECONNRESET

**URL:** <https://community.neo4j.com/t/http-api-returns-read-econnreset/27742>\
**Category:** Import / Export\
**Tags:** http, neo4j-4\
**Created:** [October 23, 2020, 12:52pm UTC](https://community.neo4j.com/t/http-api-returns-read-econnreset/27742 "2020-10-23T12:52:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alete89](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/alete89/32/9191_2.png) [@alete89](https://community.neo4j.com/u/alete89)\
**Post date:** [October 23, 2020, 12:52pm UTC](https://community.neo4j.com/t/http-api-returns-read-econnreset/27742/1 "2020-10-23T12:52:57Z")

</div>

Hello, community!  
I'm using Neo4j 4.0 and trying to load nodes through HTTP API. I'm making a `POST` request to `my.neo4j.hostname/db/neo4j/tx/commit`  
with following headers:

```auto
Content-Type: application/json
Cache-Control: no-cache
Connection: keep-alive
Authorization: Basic myauth
X-Stream: true

```

With the following body:

```auto
{
    statements: [
      {
        statement: `using periodic commit\nLOAD CSV FROM '${csvUrl}' AS line\nMERGE (m:Member { mid: line[0]});`,
      },
    ],
  };

```

The dataset contains 3 columns, 4.8 Million rows, it's a CSV about of around 250MB.

And I'm consistently getting `read ECONNRESET` after 4 minutes approximately.  
I didn't had this issue with smaller (test) CSVs. Is there some sort of time limit for the HTTP API that I cand increase? or any other recommendations?

Additionally: after that query, I would need to run another to generate all the relationships, but I wasn't able to even reach that yet.

Thanks!

---

<div class="post-metadata">

**Author:** ![amsilf](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/amsilf/32/13216_2.png) [@amsilf](https://community.neo4j.com/u/amsilf)\
**Post date:** [November 1, 2020, 12:57pm UTC](https://community.neo4j.com/t/http-api-returns-read-econnreset/27742/2 "2020-11-01T12:57:08Z")

</div>

Good day,

Have you checked your neo4j logs and memory configs?

---

<div class="post-metadata">

**Author:** ![alete89](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/alete89/32/9191_2.png) [@alete89](https://community.neo4j.com/u/alete89)\
**Post date:** [November 5, 2020, 12:34am UTC](https://community.neo4j.com/t/http-api-returns-read-econnreset/27742/3 "2020-11-05T00:34:27Z")

</div>

Thanks for your reply. I had no access to the neo4j instance, but further investigation resulted in a memory issue, so you were right.

Thanks 🙂
