I try to search for NPM packages in Postman script section but it keeps returning no result.
Turn out search api returns 401 Unauthorized error
Can anyone take a look at this case?
I try to search for NPM packages in Postman script section but it keeps returning no result.
Turn out search api returns 401 Unauthorized error
Can anyone take a look at this case?
Hey @tungnat-prdcv
Welcome to the Postman Community!
I’m not seeing this on my side on the latest version
Could you try logging out and back into the platform, please?
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:
curl 'https://packman.pstmn.io/v1/search?query=sql®istry=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"'
@tungnat-prdcv Thank you for sharing the details. We are looking into this and will update here once the fix is out.
Hey @tungnat-prdcv!
This issue should be resolved now. Let us know if you continue to experience any problems!