Hi Guys Im New In Postman
I Want To Log All Error Message In Postman Console
i have many error message in response
whats is the code i dont know how log all errors
this is my code by the way
what should i use
Hi Guys Im New In Postman
I Want To Log All Error Message In Postman Console
i have many error message in response
whats is the code i dont know how log all errors
this is my code by the way
what should i use
Hi,
So if you wanna see all the error messages in the errors array in the response. you could just loop over then and display it in the console. I can’t see how to access the errors array in the response json. But i’ll use a place holder
const response = pm.response.json();
response.forEach(response => console.log(response.errors.message));
That will loop over all the error messages in the error array and print it to the console