Attempting to use Postman CLI to run a collection which uses a package in a post-request script. Logged into CLI with API Key. Collection being referenced by ID. Environment being referenced by ID. Folders being referenced by Name. Receiving error below. Request/script runs fine when running via Postman UI.
Error
Error while loading package ā@teamname/package-nameā: Something went wrong while fetching the package.
at test-script
inside āFolderName / RequestNameā
The system cannot find the path specified.
You are not alone. I see the error with Windows 10 and Postman CLI 1.9.0 (the latest version).
Iāve raised a support ticket and itās been investigated currently, Hopefully, they can resolve it soon and we will both benefit from it.
The Package Libray is such a cool feature, it will make a big difference for us as we use lots of additional functions, and having them held centrally will reduce the duplicate code we currently have in each collection.
I am also on Postman Professional. Thanks for any help with this! A fix would greatly benefit us in terms of maintenance and code reuse. We currently use Newman CLI for our CI/CD integration, but itās my understanding that the packages will only be supported in Postman CLI. This issue is the only thing holding us back from converting to Postman CLI from Newman.