# My collection failed in Newman, Even though collection Runs successfully in Postman Runner

**URL:** <https://community.postman.com/t/my-collection-failed-in-newman-even-though-collection-runs-successfully-in-postman-runner/20525>\
**Category:** Help Hub\
**Tags:** newman-project, collections\
**Created:** [February 18, 2021, 9:32am UTC](https://community.postman.com/t/my-collection-failed-in-newman-even-though-collection-runs-successfully-in-postman-runner/20525 "2021-02-18T09:32:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roshin\_08](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@Roshin\_08](https://community.postman.com/u/Roshin_08)\
**Post date:** [February 18, 2021, 9:32am UTC](https://community.postman.com/t/my-collection-failed-in-newman-even-though-collection-runs-successfully-in-postman-runner/20525/1 "2021-02-18T09:32:22Z")

</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,  
i have collection and it’s runs successfully in postman Runner, and Failed in Newman  
i have exported both Collection and Sessions , and passed the same value in Newman Request

> newman run collection1.json -e session.postman\_environment.json -r htmlextra.
> 
> > newman run collection1.json -e session.postman\_environment.json -r htmlextra --delay-request-100

And My Scripts are Failing in Newman,  
**Response Code:** 422 - Unprocessable Entity  
Please advise , What changes needs to be done.

---

<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 18, 2021, 10:43am UTC](https://community.postman.com/t/my-collection-failed-in-newman-even-though-collection-runs-successfully-in-postman-runner/20525/2 "2021-02-18T10:43:53Z")

</div>

Hey @Roshin_08

Without more context about the requests in the collection, it’s tough to offer any solid solutions here.

Are these local requests that using the `-k` are there are redirects that are automatically followed that `--ignore-redirects` could help with?

Can you can any extra information from the Newman run by adding the built in CLI reporter `-r cli,htmlextra `?

---

<div class="post-metadata">

**Author:** ![Roshin\_08](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@Roshin\_08](https://community.postman.com/u/Roshin_08)\
**Post date:** [February 18, 2021, 4:39pm UTC](https://community.postman.com/t/my-collection-failed-in-newman-even-though-collection-runs-successfully-in-postman-runner/20525/3 "2021-02-18T16:39:05Z")

</div>

> [@danny-dainton](#):
>
> Are these local requests that using the `-k` are there are redirects that are automatically followed that `--ignore-redirects` could help with?
> 
> Can you can any extra information from the Newman run by adding the built in CLI reporter `-r cli,htmlextra ` ?

We Tried with Extra data, below is the screenshot.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/9/b/9b4998abe1471c88652fb1f8197b43ce475ba8f7.png)

---

<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 18, 2021, 4:49pm UTC](https://community.postman.com/t/my-collection-failed-in-newman-even-though-collection-runs-successfully-in-postman-runner/20525/4 "2021-02-18T16:49:20Z")

</div>

Also might need to change the test name or the value it’s checking for - is it 200 or 201? 😃

Just going back to my other point:

> Without more context about the requests in the collection, it’s tough to offer any solid solutions here.

The image doesn’t tell us a great deal about _what_ that request is doing, other than _something_ errored.

Have you tried looking at the request or response details for any clues about the differences between the app and newman?

Is the transaction request timing out after a certain amount of time when using Newman?

Does using `--timeout-request <time is ms>` help?
