In Postman, I run an arbitrary request. I put the following code in either the Pre-req. script or in the Tests script:
fetch('https://jsonplaceholder.typicode.com/todos/3')
.then(response => response.text())
.then(responseBody => {
console.log('The response body:');
console.log(responseBody);
});
When I hit the Send button to run the request, I get ReferenceError: fetch is not defined:
When searching online, I have hardly found anything about this error message in Postman. Now, Postman is not a web browser in the normal sense, but just about every well known web browser offers the Fetch API these days.
Does Postman not implement the Fetch API?