newman icon indicating copy to clipboard operation
newman copied to clipboard

Newman error inside get command

Open Takroemin opened this issue 2 years ago • 1 comments

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):

Takroemin avatar Mar 22 '23 06:03 Takroemin

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

AdityaGupta-cyber avatar May 23 '23 10:05 AdityaGupta-cyber