I need some help, My issue is my collections are running successfully in functional mode but same when i wan to run from CLI or Scheduled runs, my scripts are failing.
Its is giving "
[401 Unauthorized, 299B, 1809ms]
┌
│ ‘Unexpected response:’, { message: ‘Una
│ uthorized’ }"
I need some help here.
Thanks,
Anil
Below is the CLI cmd I am using
Last login: Sun Sep 29 22:54:46 on ttys002
Hi @danny-dainton , when i checked my variables in environment files , both Initial and Current values are having the same values.
Is there any other constraints? where my scripts are failing in scheduler and passed in functionally.
I do have few pre requisite scripts which set some of these Env values during run time.
I’m kinda at a disadvantage as I cannot see what you have in front of you or what you have tried so far
Are you able to create a dummy Collection using the https://postman-echo.com/get endpoint and an environment file to test out the Postman CLI flows that you’re seeing.
Could you tried using the --verbose flag or add additional console logs to the request to see what’s not getting set through the workflow?
The scheduled runs would need that variables in the initial value in order to see these as they are run in the Cloud and not on your machine, same with the CLI.