Search code examples
postmanmean

How to resolve 400 Bad Request error in Postman in a sample MEAN application


I am working on a sample MEAN application where in I have started to create the node.js related files and connected the same to MongoDB. I have create a POST call which sends the json to the DB. I tried to test the api using postman but not sure whats wrong, I have checked multiple times, the api throws bad request.Any help on this is much appreciated. Thanks.

Added the relevant route.js, app.js and contact.js files for reference in stackblitz link. Added error in postman for reference.

postman

https://stackblitz.com/edit/node-mlodls?file=app.js

enter image description here


Solution

  • Resolved the issue using postman extension. Wondering why the API doesnt work in postman software and works in postman extension