# Unable to search for packages in Postman script

**URL:** <https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025>\
**Category:** Help Hub\
**Tags:** tests, npm, package-library\
**Created:** [April 22, 2025, 9:53am UTC](https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025 "2025-04-22T09:53:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tungnat-prdcv](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tungnat-prdcv/32/32365_2.png) [@tungnat-prdcv](https://community.postman.com/u/tungnat-prdcv)\
**Post date:** [April 22, 2025, 9:53am UTC](https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025/1 "2025-04-22T09:53:43Z")

</div>

I try to search for NPM packages in Postman script section but it keeps returning no result.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/f/efe52ceba71cb7b1c680cfe59f6fbaab1c2f2dd2.png)

Turn out search api returns 401 Unauthorized error

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/f/3f0f641edfcc6ff8c47cdb14ffa37b0db9023de6.png)

Can anyone take a look at this case?

---

<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:** [April 22, 2025, 10:00am UTC](https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025/2 "2025-04-22T10:00:37Z")

</div>

Hey @tungnat-prdcv 👋

Welcome to the Postman Community! :postman:

I’m not seeing this on my side on the latest version 🤔

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/d/fd74d6240b889d42fd980ad5968d72d2f905fe2d.png)

Could you try logging out and back into the platform, please?

---

<div class="post-metadata">

**Author:** ![tungnat-prdcv](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tungnat-prdcv/32/32365_2.png) [@tungnat-prdcv](https://community.postman.com/u/tungnat-prdcv)\
**Post date:** [April 23, 2025, 2:31am UTC](https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025/3 "2025-04-23T02:31:14Z")

</div>

Hi Danny

I’ve tried relogging in a couple times as well as logging in with a different account and a public network but the error still persists.

Here is the cURL of the search query from my side:

```auto
curl 'https://packman.pstmn.io/v1/search?query=sql&registry=npm%2Cjsr&limit=5' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Authorization: Bearer xxxx' \
  -H 'Connection: keep-alive' \
  -H 'Origin: https://web.postman.co' \
  -H 'Referer: https://web.postman.co/workspace/My-Workspace~d9e5ec82-45f9-486e-8b69-270938fb3bda/collection/40831323-f6bf6a52-e9b7-43d9-a146-195696d9e545?tab=scripts' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0' \
  -H 'sec-ch-ua: "Microsoft Edge";v="135", "Not-A.Brand";v="8", "Chromium";v="135"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"'

```

---

<div class="post-metadata">

**Author:** ![appurva21](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/appurva21/32/34560_2.png) [@appurva21](https://community.postman.com/u/appurva21)\
**Post date:** [April 23, 2025, 5:09am UTC](https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025/4 "2025-04-23T05:09:43Z")

</div>

@tungnat-prdcv Thank you for sharing the details. We are looking into this and will update here once the fix is out.

---

<div class="post-metadata">

**Author:** ![appurva21](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/appurva21/32/34560_2.png) [@appurva21](https://community.postman.com/u/appurva21)\
**Post date:** [April 23, 2025, 11:06am UTC](https://community.postman.com/t/unable-to-search-for-packages-in-postman-script/79025/5 "2025-04-23T11:06:29Z")

</div>

Hey @tungnat-prdcv!

This issue should be resolved now. Let us know if you continue to experience any problems!
