# Response body was not logged

**URL:** <https://community.postman.com/t/response-body-was-not-logged/11952>\
**Category:** Help Hub\
**Tags:** runner, collection-runner\
**Created:** [April 14, 2020, 9:42pm UTC](https://community.postman.com/t/response-body-was-not-logged/11952 "2020-04-14T21:42:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pblintso87](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pblintso87](https://community.postman.com/u/Pblintso87)\
**Post date:** [April 14, 2020, 9:42pm UTC](https://community.postman.com/t/response-body-was-not-logged/11952/1 "2020-04-14T21:42:13Z")

</div>

I have a collection with a request that has a test, which gets pass result when I send the request.

However, when I run my collection in collection runner, the test fails. Response Body dropdown has: Response body was not logged.

Based on the screenshots, what am I doing wrong?

 ![Collection Runner result](https://us1.discourse-cdn.com/getpostman/original/2X/c/cb2bb8ac5c043d6ffa7a4c7b65920a64be6d64eb.png) ![resquest result](https://us1.discourse-cdn.com/getpostman/original/2X/d/d1578e9cc96736d1ba4392ea37d3fac89ecc73e1.png)

---

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [April 14, 2020, 9:56pm UTC](https://community.postman.com/t/response-body-was-not-logged/11952/2 "2020-04-14T21:56:56Z")

</div>

Hi @Pblintso87,

To address your first issue with tests failing in the runner but not in the request, make sure that:

1. The request is saved with the latest changes.
2. The correct environment is selected in the Collection Runner options.
3. If you’re using a data file, make sure it’s not introducing values that would create unexpected results.

To address the problem with not seeing response data in the Collection Runner, please make sure the `Save responses` option is checked in the Collection Runner before hitting the blue `Run` button.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/7/57938dcdbcd9b9b4b0f77f8c8734f571cf54cc2c.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:** [April 14, 2020, 10:26pm UTC](https://community.postman.com/t/response-body-was-not-logged/11952/3 "2020-04-14T22:26:25Z")

</div>

As @kevin.swiber mentioned already, I would take a look at the environment file.

It’s getting a 404 so there is likely something wrong with the URL, as you have an environment variable in there, it’s probably not getting resolved.

I noticed in your tests that you use `pm.response.text()`, as the response is JSON, you could just use expect statements in the `pm.test()` function:

```auto
pm.expect(pm.response.json()).to.have.property("password");

pm.expect(pm.response.json()).to.have.property("email");

```

---

<div class="post-metadata">

**Author:** ![Pblintso87](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Pblintso87](https://community.postman.com/u/Pblintso87)\
**Post date:** [April 14, 2020, 10:55pm UTC](https://community.postman.com/t/response-body-was-not-logged/11952/4 "2020-04-14T22:55:19Z")

</div>

@danny-dainton, @kevin.swiber

Thank you both for your assistance.

Per Kevin’s tip, I ensured **Save responses** option is checked, and I also used Danny’s `pm.test()` function: statements. However, I am still getting the collection run test fail ☹  
This is the fail result:

 ![response result2](https://us1.discourse-cdn.com/getpostman/original/3X/8/e/8ee9cff0d189fb9475cf2b198a5abb47bc3db89c.png)

I only get a problem when I use text/cvs files. When I used a json-type file, the assertions pass.

This is the environment, and I am not sure where in it the problem is. I just started learning Postman this week, so I haven’t learned its nuances…

 ![preprod env](https://us1.discourse-cdn.com/getpostman/original/2X/d/d618ee553fbfc007678f1cd20c5d77f77341537b.png)

---

<div class="post-metadata">

**Author:** ![spacecraft-technolog](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@spacecraft-technolog](https://community.postman.com/u/spacecraft-technolog)\
**Post date:** [May 9, 2021, 4:31pm UTC](https://community.postman.com/t/response-body-was-not-logged/11952/5 "2021-05-09T16:31:04Z")

</div>

I am also facing the same issue…any update on this???

---

<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:** [May 22, 2021, 8:42am UTC](https://community.postman.com/t/response-body-was-not-logged/11952/6 "2021-05-22T08:42:45Z")

</div>

Hey @spacecraft-technolog

Could you expand on this and explain the issue you’re seeing in your context, please?

Not all issues are exactly the same so to be able to help with yours, we’re going to need to see it 😁
