# Collection working fine in Postman but the same collection fails in newman

**URL:** <https://community.postman.com/t/collection-working-fine-in-postman-but-the-same-collection-fails-in-newman/16396>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections\
**Created:** [October 1, 2020, 7:43am UTC](https://community.postman.com/t/collection-working-fine-in-postman-but-the-same-collection-fails-in-newman/16396 "2020-10-01T07:43:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelalexm](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@michaelalexm](https://community.postman.com/u/michaelalexm)\
**Post date:** [October 1, 2020, 7:43am UTC](https://community.postman.com/t/collection-working-fine-in-postman-but-the-same-collection-fails-in-newman/16396/1 "2020-10-01T07:43:46Z")

</div>

My collection works fine with Postman when I try to run using Newman from the command line, **the response body** is empty. attached the screenshot for your reference.  
Command used - newman run CollectionforPipeLine.js

 ![newman](https://us1.discourse-cdn.com/getpostman/original/3X/c/d/cd5282511fa0fe13340bf376fbdd212719946bef.jpeg) ![Postman](https://us1.discourse-cdn.com/getpostman/original/3X/d/0/d0c18996c391ca5042d28ead1b197b9c64291f0c.jpeg) on -d GoRest.Json -n 2 -e dev.postman\_environment.json

---

<div class="post-metadata">

**Author:** ![michaelalexm](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@michaelalexm](https://community.postman.com/u/michaelalexm)\
**Post date:** [October 1, 2020, 7:45am UTC](https://community.postman.com/t/collection-working-fine-in-postman-but-the-same-collection-fails-in-newman/16396/2 "2020-10-01T07:45:38Z")

</div>

> [@michaelalexm](#):
>
> on -d GoRest.Json -n 2 -e dev.postman\_environment.json

Command - newman run CollectionforPipeLine.json -d GoRest.Json -n 2 -e dev.postman\_environment.json
