# Newman report getting -expected object (id \_details ...) to have property 'code'

**URL:** <https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections, authentication\
**Created:** [September 23, 2022, 1:44am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393 "2022-09-23T01:44:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-geologist6](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@technical-geologist6](https://community.postman.com/u/technical-geologist6)\
**Post date:** [September 23, 2022, 1:44am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/1 "2022-09-23T01:44:39Z")

</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).

I have created postman collection locally used Test 200 assertion. it’s working as expected. While generating the newman report same request response message error shows

expected object (id \_details …) to have property ‘code’

for 200 response code validation

Anyone having solution

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [September 24, 2022, 3:47am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/2 "2022-09-24T03:47:07Z")

</div>

Hi @technical-geologist6  
Could you share some screenshots of what you’re seeing?

Check in the console logs if you are getting the expected response back from the server.

---

<div class="post-metadata">

**Author:** ![ganeshmisson](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@ganeshmisson](https://community.postman.com/u/ganeshmisson)\
**Post date:** [September 27, 2022, 10:59am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/3 "2022-09-27T10:59:27Z")

</div>

Hi, Please find the below snapshot.

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

note: I have checked in console and the response value is displaying in console ( came from server). Response details is not captured/displayed in newman report so this following error is displaying " **expected { Object (id, \_details, …) } to have property ‘code’**"

@danny-dainton - Could you please provide your insight on the above error?

---

<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:** [September 27, 2022, 2:48pm UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/4 "2022-09-27T14:48:00Z")

</div>

What’s the output from the CLI reporter for the request?

```auto
newman run collection.json -r cli

```

The report is generated based on the same information coming from Newman, there isn’t any manipulation of the data presented in the report. It just happens to be displayed it a more visual way.

Also, in isolation, it’s difficult to know what’s going on as we cannot see the actual request you’re making, the version of Node or the version of Newman that you’re using.

---

<div class="post-metadata">

**Author:** ![ganeshmisson](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@ganeshmisson](https://community.postman.com/u/ganeshmisson)\
**Post date:** [September 29, 2022, 8:03am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/5 "2022-09-29T08:03:02Z")

</div>

@danny-dainton - Thank you for your response! I could see this error ’ self signed certificate in certificate chain ’ while running the collection from command prompt. so I ran the connection with --insecure command. it is working fine now.

---

<div class="post-metadata">

**Author:** ![pchakral](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pchakral](https://community.postman.com/u/pchakral)\
**Post date:** [November 29, 2022, 2:47am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/6 "2022-11-29T02:47:53Z")

</div>

Hey man  
Thanks a lot  
I spent 1 week like a mad person and --insecure did resolve my issue.  
Awesome. Thankyou !!!

---

<div class="post-metadata">

**Author:** ![bimal1977](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@bimal1977](https://community.postman.com/u/bimal1977)\
**Post date:** [March 26, 2023, 2:02pm UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/7 "2023-03-26T14:02:29Z")

</div>

getting same error but its not working if I am using --insecure command.Can you please hekp on this??

---

<div class="post-metadata">

**Author:** ![cryosat-administrat7](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@cryosat-administrat7](https://community.postman.com/u/cryosat-administrat7)\
**Post date:** [December 25, 2024, 11:38am UTC](https://community.postman.com/t/newman-report-getting-expected-object-id-details-to-have-property-code/39393/8 "2024-12-25T11:38:00Z")

</div>

hi @bimal1977 I am facing the same issue. Did you get solution for this.? I have been finding solution since many days. No luck
