# Postman can't connect to mongoDB

**URL:** <https://community.postman.com/t/postman-cant-connect-to-mongodb/8175>\
**Category:** Help Hub\
**Created:** [October 4, 2019, 10:13am UTC](https://community.postman.com/t/postman-cant-connect-to-mongodb/8175 "2019-10-04T10:13:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CherylJello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/cheryljello/32/2958_2.png) [@CherylJello](https://community.postman.com/u/CherylJello)\
**Post date:** [October 4, 2019, 10:13am UTC](https://community.postman.com/t/postman-cant-connect-to-mongodb/8175/1 "2019-10-04T10:13:38Z")

</div>

Hi guys,

I’ve been debugging a connection problem for a few days when running the POST request. I am using Node.js and mongoDB, mongoose. I’ve checked the DB is able to be connected in Node.js. But in postman, an error message comes up in console :

Error: socket hang up

POST /products HTTP/1.1

Content-Type: application/json

Is there anyone can help me with this problem? Thank you!!

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [October 4, 2019, 9:13pm UTC](https://community.postman.com/t/postman-cant-connect-to-mongodb/8175/2 "2019-10-04T21:13:06Z")

</div>

Hi @CherylJello, welcome to the community! 👋

Can you share more insights into the API that you’ve designed?  
Can you verify that you’re hitting the request with the correct body etc?  
Check the endpoint etc. too!

You can go through the [docs regarding how you can debug in Postman.](https://learning.getpostman.com/docs/postman/sending_api_requests/debugging_and_logs/)
