# Postman update causing pm.sendRequest to require .catch() block — too many scripts to update

**URL:** <https://community.postman.com/t/postman-update-causing-pm-sendrequest-to-require-catch-block-too-many-scripts-to-update/79121>\
**Category:** Help Hub\
**Tags:** scripts\
**Created:** [April 24, 2025, 2:17am UTC](https://community.postman.com/t/postman-update-causing-pm-sendrequest-to-require-catch-block-too-many-scripts-to-update/79121 "2025-04-24T02:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerospace-technolog7](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@aerospace-technolog7](https://community.postman.com/u/aerospace-technolog7)\
**Post date:** [April 24, 2025, 2:17am UTC](https://community.postman.com/t/postman-update-causing-pm-sendrequest-to-require-catch-block-too-many-scripts-to-update/79121/1 "2025-04-24T02:17:20Z")

</div>

Hi everyone,

After a recent Postman update (I believe sometime around 04/23 2025), it seems that `pm.sendRequest` calls in my Pre-request Scripts are now throwing unhandled promise rejections unless they are wrapped in a `.catch()` or `try/catch`.

, I’m seeing `UnhandledPromiseRejection` errors in the console when using `pm.sendRequest` in Pre-request Scripts — even though I’m using the classic callback style with `(err, res)`.

The problem is that I have a large number of scripts that rely on `pm.sendRequest` in its old form (callback-based), and I’m not using `async/await` or Promises directly in most of them. The code used to work fine without any explicit error handling for promises.

Now, even simple callback-based requests like this are causing errors:

```auto
pm.sendRequest({
    url: pm.environment.get('url') + 'example',
    method: 'GET'
}, function (err, res) {
    if (err) {
        console.error(err);
    } else {
        console.log(res.code);
    }
}).catch(console.log); //<<<<<<------ except this make error....

```

Is this a known change in behavior with a specific Postman version?  
Is there a way to suppress or globally handle these unhandled rejection warnings without rewriting every script?

Any suggestions would be greatly appreciated — updating dozens or hundreds of test scripts manually isn’t feasible at the moment.

Thanks!

---

<div class="post-metadata">

**Author:** ![aerospace-technolog7](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@aerospace-technolog7](https://community.postman.com/u/aerospace-technolog7)\
**Post date:** [April 24, 2025, 3:57am UTC](https://community.postman.com/t/postman-update-causing-pm-sendrequest-to-require-catch-block-too-many-scripts-to-update/79121/2 "2025-04-24T03:57:34Z")

</div>

i think The issue was resolved after updating Postman once more. 😄
