# \#sendrequest

**URL:** https://community.postman.com/tag/sendrequest/485.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Error: getaddrinfo ENOTFOUND whena specific URL is used](https://community.postman.com/t/error-getaddrinfo-enotfound-whena-specific-url-is-used/75219)

<div class="topic-metadata">

**Author:** [@adawi](https://community.postman.com/u/adawi)\
**Replies:** 0\
**Last updated:** [February 10, 2025, 6:23pm UTC](https://community.postman.com/t/error-getaddrinfo-enotfound-whena-specific-url-is-used/75219 "2025-02-10T18:23:28Z")

</div>

This drives me crazy. The Http Server receives requests on a public IP. You must add Host header to the request. a Proxy or something will direct the request to the right website using Host value. So if you send the …

---

## [Not connected "Send Request" block still executed](https://community.postman.com/t/not-connected-send-request-block-still-executed/71908)

<div class="topic-metadata">

**Author:** [@Artyomsv](https://community.postman.com/u/Artyomsv)\
**Replies:** 3\
**Last updated:** [December 2, 2024, 3:18pm UTC](https://community.postman.com/t/not-connected-send-request-block-still-executed/71908 "2024-12-02T15:18:54Z")

</div>

I\`m new to the Flows in a Postman and wanted to mimic the real flow of my application but faced an issue with the “Send Request” block. According to the docs you need to connect to the “Send” node to trigger “Send Reques…

---

## [I can't get the sixth element from the header array](https://community.postman.com/t/i-cant-get-the-sixth-element-from-the-header-array/59937)

<div class="topic-metadata">

**Author:** [@garibzyanovsergei](https://community.postman.com/u/garibzyanovsergei)\
**Replies:** 4\
**Last updated:** [April 15, 2024, 5:16pm UTC](https://community.postman.com/t/i-cant-get-the-sixth-element-from-the-header-array/59937 "2024-04-15T17:16:55Z")

</div>

Why I can’t get the sixth element from the header array from the response, because it’s there? I have the code in the pre-request scripts: pm.sendRequest({ url: pm.environment.get('baseUrl') + '/checkPhone', …

---

## [Add variables in Send request blocks](https://community.postman.com/t/add-variables-in-send-request-blocks/59642)

<div class="topic-metadata">

**Author:** [@technical-cosmonaut3](https://community.postman.com/u/technical-cosmonaut3)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 3:46pm UTC](https://community.postman.com/t/add-variables-in-send-request-blocks/59642 "2024-04-05T15:46:14Z")

</div>

Hi, how to add new variables in my Send request block please ? there is a default one but i cannot add anything else, not even my token so not possible to make this call for others i have a few variables available …

---

## [Flows - send request - repeat request fails silently](https://community.postman.com/t/flows-send-request-repeat-request-fails-silently/53100)

<div class="topic-metadata">

**Author:** [@cbarrydcg](https://community.postman.com/u/cbarrydcg)\
**Replies:** 4\
**Last updated:** [November 7, 2023, 5:41pm UTC](https://community.postman.com/t/flows-send-request-repeat-request-fails-silently/53100 "2023-11-07T17:41:05Z")

</div>

i have a series of requests that i am using ‘flows’ to orchestrate. each request kicks off a job elsewhere, and what i need to do is wait until the job kicked off from the request is complete until i move onto the next …

---

## [Scheduling an async request](https://community.postman.com/t/scheduling-an-async-request/52438)

<div class="topic-metadata">

**Author:** [@marina-biro](https://community.postman.com/u/marina-biro)\
**Replies:** 4\
**Last updated:** [September 28, 2023, 10:28am UTC](https://community.postman.com/t/scheduling-an-async-request/52438 "2023-09-28T10:28:56Z")

</div>

I cannot understand why the following code does not work function sendRequest() { pm.sendRequest({ url: 'https://website/signin', method: 'POST', header: { 'Content-Type': 'applic…

---

## [Sending new test data in body of each new setNextRequest iteration](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842)

<div class="topic-metadata">

**Author:** [@rdzanan](https://community.postman.com/u/rdzanan)\
**Replies:** 3\
**Last updated:** [May 26, 2023, 9:46am UTC](https://community.postman.com/t/sending-new-test-data-in-body-of-each-new-setnextrequest-iteration/22842 "2023-05-26T09:46:00Z")

</div>

Hey guys I have searched all over the forum but wasnt able to find the solution. Basically I use random method to generate name in one of my requests which repeats multiple times in collection. Issue is when I run the se…

---

## [Request Body missing in Post call from Pre-request script](https://community.postman.com/t/request-body-missing-in-post-call-from-pre-request-script/28120)

<div class="topic-metadata">

**Author:** [@divyanshu.chandrasah](https://community.postman.com/u/divyanshu.chandrasah)\
**Replies:** 1\
**Last updated:** [May 23, 2023, 6:20pm UTC](https://community.postman.com/t/request-body-missing-in-post-call-from-pre-request-script/28120 "2023-05-23T18:20:59Z")

</div>

I have a simple request that I want to send to my API. But before sending this request, I have to generate HMAC so that my request can be validated. So here what I really want to do is to chain 2 requests - (HMAC request…

---

## [Response assertion error on pm.sendRequest](https://community.postman.com/t/response-assertion-error-on-pm-sendrequest/47183)

<div class="topic-metadata">

**Author:** [@inisalamadu](https://community.postman.com/u/inisalamadu)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 7:40am UTC](https://community.postman.com/t/response-assertion-error-on-pm-sendrequest/47183 "2023-05-07T07:40:28Z")

</div>

pm.test("Driver:Password Rest: Reset driver password with proper data", function () { var jsonData = pm.response.json(); pm.expect(jsonData.message).eq("Password rest successfully done!"); }); //Now we need t…

---

## [Howto extract multipart audio from json response and resend it](https://community.postman.com/t/howto-extract-multipart-audio-from-json-response-and-resend-it/39864)

<div class="topic-metadata">

**Author:** [@JeanPLZ](https://community.postman.com/u/JeanPLZ)\
**Replies:** 0\
**Last updated:** [October 7, 2022, 5:12pm UTC](https://community.postman.com/t/howto-extract-multipart-audio-from-json-response-and-resend-it/39864 "2022-10-07T17:12:22Z")

</div>

Hello All, I’m facing a problem, here it is I have a server , wiremock (for callback) and postman. My server send to wiremock an audio file, with postman I check this request and I want to verify the audio file by res…

---

## [Pm.variables inside sendRequest handler not available](https://community.postman.com/t/pm-variables-inside-sendrequest-handler-not-available/26439)

<div class="topic-metadata">

**Author:** [@satellite-observer-4](https://community.postman.com/u/satellite-observer-4)\
**Replies:** 2\
**Last updated:** [August 5, 2021, 8:10am UTC](https://community.postman.com/t/pm-variables-inside-sendrequest-handler-not-available/26439 "2021-08-05T08:10:32Z")

</div>

My question: I am trying to access a local variable (pm.variables) from within an anonymous function which handles a sendRequest call. It returns undefined when in the handler of the sendRequest but returns the correct …

---

## [Postman Pointers - How to Send Requests from Scripts using the sendRequest function](https://community.postman.com/t/postman-pointers-how-to-send-requests-from-scripts-using-the-sendrequest-function/22156)

<div class="topic-metadata">

**Author:** [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Replies:** 8\
**Last updated:** [April 5, 2021, 3:51pm UTC](https://community.postman.com/t/postman-pointers-how-to-send-requests-from-scripts-using-the-sendrequest-function/22156 "2021-04-05T15:51:54Z")

</div>

Hi Everyone, I’ve created a new video that reviews the power of pm.sendRequest, and how you can format it in a different way using the PostmanSDK. Most of you are likely familiar with this function, but there are more o…
