# Error: read ECONNRESET while executing through Newman and collection runner

**URL:** <https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927>\
**Category:** Help Hub\
**Tags:** newman-project, collection-runner\
**Created:** [February 3, 2021, 10:50am UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927 "2021-02-03T10:50:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonutitus](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sonutitus](https://community.postman.com/u/sonutitus)\
**Post date:** [February 3, 2021, 10:50am UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/1 "2021-02-03T10:50:29Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi Team,

I am new to POSTMAN and i have been facing error “Error: read ECONNRESET” while running the collection through Collection runner and New man

This issue is existing for request that are having response more than 4 seconds, and that too not every time. While running the request in manual way by clicking Send it is giving valid response

The request which shows error “Error: read ECONNRESET”, may not show the error again. It is intermittent issue… But its pointing towards stability issue in collection runner and newman

 ![newman_html_report](https://us1.discourse-cdn.com/getpostman/original/3X/7/7/77c0ed02b9e7777348592fee221df291cf476e24.png) ![pm_test](https://us1.discourse-cdn.com/getpostman/original/3X/9/4/94547c513acf4d46f6267b1305c9a950f0e91de8.png)

---

<div class="post-metadata">

**Author:** ![sonutitus](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sonutitus](https://community.postman.com/u/sonutitus)\
**Post date:** [February 3, 2021, 10:52am UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/2 "2021-02-03T10:52:14Z")

</div>

It would be a really good if someone could help with the above issue

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 3, 2021, 11:47am UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/3 "2021-02-03T11:47:35Z")

</div>

Hey @sonutitus

Is there a reason that you have the 2 `setTimeout` functions in the script?

Does the connection timeout after a certain amount of time?

What’s the response time of the request that passes compared to the same request the is intermittently failing?

---

<div class="post-metadata">

**Author:** ![sonutitus](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sonutitus](https://community.postman.com/u/sonutitus)\
**Post date:** [February 3, 2021, 12:03pm UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/4 "2021-02-03T12:03:43Z")

</div>

Hi @danny-dainton ,

Thank you for the quick response.

The reason I tried using timeout is because this ECONNRESET issue, so the timeout would actually wait for the response

1st Timeout is used to wait 2 seconds after getting the response and the second time out 1 second is used to wait before storing the response to variable.

But timeout itself was just workaround i tried to achieve to solve the ECONNRESET issue, but was not successful

The response time passes : anything below 3 seconds are working

---

<div class="post-metadata">

**Author:** ![sonutitus](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sonutitus](https://community.postman.com/u/sonutitus)\
**Post date:** [February 3, 2021, 1:20pm UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/5 "2021-02-03T13:20:41Z")

</div>

@danny-dainton

No, there is no connection timeout while Sending request using the script using SEND button

---

<div class="post-metadata">

**Author:** ![sonutitus](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@sonutitus](https://community.postman.com/u/sonutitus)\
**Post date:** [February 7, 2021, 1:41pm UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/6 "2021-02-07T13:41:50Z")

</div>

@jetison  
Hi Joyce,

Hope you are doing good.

Could you please suggest some work around if you have faced the above issue. ? There are almost 132 request in total

---

<div class="post-metadata">

**Author:** ![e7866c](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@e7866c](https://community.postman.com/u/e7866c)\
**Post date:** [April 17, 2021, 12:58pm UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/7 "2021-04-17T12:58:25Z")

</div>

Is there issue resolved already? I encountered this issue as well.  
I have 2 requests in the collection,

- if I run requests one by one by clicking “Send” button, both requests succeeded.
- if I run the collection using collection runner, I get “Error: read ECONNRESET” for the 2nd request every time, ![postman_error](https://us1.discourse-cdn.com/getpostman/original/3X/a/9/a9cf204a743336f4f8349e36506337d902812f8d.png)

---

<div class="post-metadata">

**Author:** ![e7866c](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@e7866c](https://community.postman.com/u/e7866c)\
**Post date:** [April 18, 2021, 3:13am UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/8 "2021-04-18T03:13:01Z")

</div>

This issue not seen again after I rebooted the host manually… Thanks.

---

<div class="post-metadata">

**Author:** ![orbital-module-geol3](https://avatars.discourse-cdn.com/v4/letter/o/e19adc/32.png) [@orbital-module-geol3](https://community.postman.com/u/orbital-module-geol3)\
**Post date:** [February 25, 2022, 10:25am UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/9 "2022-02-25T10:25:46Z")

</div>

please tell me did you solve that issue

kindly reply

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 24, 2023, 4:19pm UTC](https://community.postman.com/t/error-read-econnreset-while-executing-through-newman-and-collection-runner/19927/10 "2023-08-24T16:19:08Z")

</div>

Closed on August 24, 2023, 4:19pm UTC


