# Newman Runner with uuid as a path parameter returning 404

**URL:** <https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946>\
**Category:** Help Hub\
**Tags:** newman-project, variables\
**Created:** [August 24, 2023, 9:10pm UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946 "2023-08-24T21:10:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkoakes](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@dkoakes](https://community.postman.com/u/dkoakes)\
**Post date:** [August 24, 2023, 9:10pm UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/1 "2023-08-24T21:10:14Z")

</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’m running a small collection via newman that has some endpoints with a UUID as a path parameter. The endpoints return a 200 within the POSTman app but a 404 within newman runner. I looked at htmlextra but ran into other issues. Any idea?

`{{host}}/somePath/7cc950f7-2407-4ec7-ba64-b1572ac86327 [404 Not Found, 288B, 250ms]`

All endpoints without a UUID as a path param works as expected.

---

<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 25, 2023, 9:00am UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/2 "2023-08-25T09:00:30Z")

</div>

Hey @dkoakes 👋

Welcome to the Postman Community! :postman:

It looks like the variable that you have for `{{host}}` isn’t resolved - What type of variable is that? How are you referencing that in the newman command?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [August 25, 2023, 9:21am UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/3 "2023-08-25T09:21:42Z")

</div>

Are you sure the {{host}} is the issue, as 404 means the resource can’t be found, it usually means the server can be reached.

As for the UUID, this will be down to the API spec. Is the UUID in the correct format, and does it exist in the system?

---

<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 25, 2023, 9:28am UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/4 "2023-08-25T09:28:41Z")

</div>

True - I was just initially thinking that it should be resolved but looking at the example, they could have just replaced that in the example, like with `somePath` 🤔

---

<div class="post-metadata">

**Author:** ![dkoakes](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@dkoakes](https://community.postman.com/u/dkoakes)\
**Post date:** [August 25, 2023, 10:36pm UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/5 "2023-08-25T22:36:35Z")

</div>

Hey thanks for the welcome!!.. sorry for the confusion it’s just a placeholder for the real host name, somePath is a placeholder for the real path as well as I was attempting to not show the real URL…

what it really looks something more like below… and all the environment variables are resolving because other requests in the same collection are passing with 200s

`GET https://fastdraw-api-web-stage.fms.com/v1/plays/7cc950f7-2407-4ec7-ba64-b1572ac86327 [404 Not Found, 288B, 254ms]` **not working**

`GET https://fastdraw-api-web-stage.fms.com/v1/plays [200 OK, 902.44kB, 500ms]` **working**

It’s weird that any request with UUID in the URL newman runner always returns a 404(works in postman app returns 200) but we use UUID as resource identifiers

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [August 29, 2023, 12:13pm UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/6 "2023-08-29T12:13:18Z")

</div>

If its working in Postman, but not Newman, then its most likely an issue with your variables.

How exactly are you defining the variables?

If you are using environment files, then ensure you are including the environment in the Newman command line options.

Leverage the console log as much as you can and check what is being sent in Postman vs Newman to see if there are any differences (however subtle).

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 27, 2023, 12:13pm UTC](https://community.postman.com/t/newman-runner-with-uuid-as-a-path-parameter-returning-404/50946/7 "2023-11-27T12:13:52Z")

</div>

Closed on November 27, 2023, 12:13pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
