# Newman is throwing error "pm.request is invalid"

**URL:** <https://community.postman.com/t/newman-is-throwing-error-pm-request-is-invalid/5847>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [June 11, 2019, 6:53am UTC](https://community.postman.com/t/newman-is-throwing-error-pm-request-is-invalid/5847 "2019-06-11T06:53:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lalith\_Vignesh](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@Lalith\_Vignesh](https://community.postman.com/u/Lalith_Vignesh)\
**Post date:** [June 11, 2019, 6:53am UTC](https://community.postman.com/t/newman-is-throwing-error-pm-request-is-invalid/5847/1 "2019-06-11T06:53:35Z")

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

In Newman scripts , i am using pm.request.  
While running i am facing the error “pm.request” is invalid.

---

<div class="post-metadata">

**Author:** ![aamir.ahmed](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@aamir.ahmed](https://community.postman.com/u/aamir.ahmed)\
**Post date:** [June 11, 2019, 8:36am UTC](https://community.postman.com/t/newman-is-throwing-error-pm-request-is-invalid/5847/2 "2019-06-11T08:36:14Z")

</div>

Hi @Lalith_Vignesh,

If you are looking to send a request to the browser, the command would be **pm.sendRequest()** and not pm.request, an example of executing this would be seen in the link below along with many other test script options:  
[https://learning.getpostman.com/docs/postman/scripts/postman\_sandbox\_api\_reference](https://learning.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference)

Have a look at the link below to get an idea about running collections using **Newman**.  
[https://learning.getpostman.com/docs/postman/collection\_runs/command\_line\_integration\_with\_newman/](https://learning.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman/)

---

<div class="post-metadata">

**Author:** ![Lalith\_Vignesh](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@Lalith\_Vignesh](https://community.postman.com/u/Lalith_Vignesh)\
**Post date:** [June 11, 2019, 12:39pm UTC](https://community.postman.com/t/newman-is-throwing-error-pm-request-is-invalid/5847/3 "2019-06-11T12:39:22Z")

</div>

Thanks.I ran the script with pm.sendRequest().Now it is working fine.
