# \#async

**URL:** https://community.postman.com/tag/async/216.md

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

---

## [Pre-request GET with JSON body](https://community.postman.com/t/pre-request-get-with-json-body/25608)

<div class="topic-metadata">

**Author:** [@mick-mcbride](https://community.postman.com/u/mick-mcbride)\
**Replies:** 0\
**Last updated:** [July 8, 2021, 5:57pm UTC](https://community.postman.com/t/pre-request-get-with-json-body/25608 "2021-07-08T17:57:14Z")

</div>

I’m trying to do a GET in Pre-request that contains a body. It fails with a 400 error, {“error”:“No query parameter provided”}. If I do the request normally with the { “email”: email } set in the Body and raw JSON set it…

---

## [Async\\Await within pm.test](https://community.postman.com/t/async-await-within-pm-test/65070)

<div class="topic-metadata">

**Author:** [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 12:28pm UTC](https://community.postman.com/t/async-await-within-pm-test/65070 "2024-08-05T12:28:25Z")

</div>

Considering the following example. for (let i = 1; i \< 11; i++) { const response = await pm.sendRequest(\`https://postman-echo.com/get?test=request${i}\`); pm.test(\`Request ${i} - status code is 200\`, () =\> { …

---

## [Proper way for async/await process?](https://community.postman.com/t/proper-way-for-async-await-process/59741)

<div class="topic-metadata">

**Author:** [@Harm10](https://community.postman.com/u/Harm10)\
**Replies:** 0\
**Last updated:** [April 9, 2024, 11:47am UTC](https://community.postman.com/t/proper-way-for-async-await-process/59741 "2024-04-09T11:47:47Z")

</div>

I am searching for a proper way to do this for days now. I seem not to find the proper example for my process wish. :slight\_smile: There is a lot of information on async/await/promise processes. A lot of them are dated …

---

## [Code Snippet Generator - .then vs async/await](https://community.postman.com/t/code-snippet-generator-then-vs-async-await/56714)

<div class="topic-metadata">

**Author:** [@docking-module-admi2](https://community.postman.com/u/docking-module-admi2)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 8:56pm UTC](https://community.postman.com/t/code-snippet-generator-then-vs-async-await/56714 "2024-01-18T20:56:41Z")

</div>

Postman code usually provide JavaScript fetch code in .then syntax. Is there a way to make async/await syntax default?

---

## [Async Operations!](https://community.postman.com/t/async-operations/24314)

<div class="topic-metadata">

**Author:** [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Replies:** 15\
**Last updated:** [December 28, 2023, 5:47am UTC](https://community.postman.com/t/async-operations/24314 "2023-12-28T05:47:31Z")

</div>

I was working with a colleague and we were trying to achieve something by chaining multiple requests as a pre-step before the actual request happened. Use case: We wanted to call 3-4 specific endpoints in a specific or…

---

## [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…

---

## [Postman body is not getting updated in pre-request script](https://community.postman.com/t/postman-body-is-not-getting-updated-in-pre-request-script/41244)

<div class="topic-metadata">

**Author:** [@joint-operations-c15](https://community.postman.com/u/joint-operations-c15)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 3:17pm UTC](https://community.postman.com/t/postman-body-is-not-getting-updated-in-pre-request-script/41244 "2022-11-24T15:17:17Z")

</div>

In Postman pre-request script I am trying to update body with some of my business logic, when I update it and console it, it prints the updated body but do not updates the body while sending request. In this Screenshot …

---

## [Postman to frontend](https://community.postman.com/t/postman-to-frontend/36056)

<div class="topic-metadata">

**Author:** [@dxlmx](https://community.postman.com/u/dxlmx)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 4:56pm UTC](https://community.postman.com/t/postman-to-frontend/36056 "2022-06-08T16:56:31Z")

</div>

The question: I think I have the API proxi url that I can use to bring the content to the front end with js with this instructions (Integrate Postman into your development toolchain | Postman Docs). Do I still need the …

---

## [Error: Script execution timed out after 30000ms](https://community.postman.com/t/error-script-execution-timed-out-after-30000ms/18044)

<div class="topic-metadata">

**Author:** [@declan.swords](https://community.postman.com/u/declan.swords)\
**Replies:** 0\
**Last updated:** [November 26, 2020, 12:19pm UTC](https://community.postman.com/t/error-script-execution-timed-out-after-30000ms/18044 "2020-11-26T12:19:25Z")

</div>

I am trying to do some load testing. I am using newman in nodejs. In my script I have async.parallel to execute several collections in parallel. Then repeat set of parallel excution every 5 sec. In each run I have the…

---

## [Why promise.then(function(value) { pm.sendRequest ... }) does not work?](https://community.postman.com/t/why-promise-then-function-value-pm-sendrequest-does-not-work/3462)

<div class="topic-metadata">

**Author:** [@Timmy\_Lin](https://community.postman.com/u/Timmy_Lin)\
**Replies:** 0\
**Last updated:** [December 3, 2018, 9:48am UTC](https://community.postman.com/t/why-promise-then-function-value-pm-sendrequest-does-not-work/3462 "2018-12-03T09:48:10Z")

</div>

Hi, I wrote a function to wait for my async API to be done first and execute related tests later. something like below: wait\_for\_task\_to\_be\_done(jsonData.taskId).then(function(value) { pm.test("Test A", function …
