postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.89k stars 1.17k forks source link

Newman error inside get command #3085

Open Takroemin opened 1 year ago

Takroemin commented 1 year ago

When I run newman in de command line i get the error as mentioned in the title. After some debugging i found the cause.

In de json exported i have a path variable that has the value 'v2' if i remove this value from the json and run newman again. i get no error but i do get a badrequest because the api string is not correct without the v2 value.

"path": [ "v2", "ondernemingen", "{agbcode}" ],

results in newman error not supported

"path": [ "ondernemingen", "{agbcode}" ],

NO newman error but a failed api call because the url is incorrect without the v2

Anyone had this problem before ?

debugging the json googling the error chatgpt Version and environment information:

  1. Newman Version (latest`):
  2. OS details (Windows x64):
  3. Are you using Newman as a library, or via the CLI? CLI
  4. Did you encounter this recently, or has this bug always been there: just started using newman
  5. Expected behaviour: complete the get command
  6. Command / script used to run Newman:
  7. Sample collection, and auxiliary files (minus the sensitive details):
  8. Screenshots (if applicable):
AdityaGupta-cyber commented 1 year ago

I would like to work on this issue. Can you assign the task to me?