---
title: "Discussion on \"MongoAPIError: URI must include hostname, domain name, and tld\" | Hashnode"
description: "Discussion on \"MongoAPIError: URI must include hostname, domain name, and tld\". This is one of the most common error a beginner use to face when he tries to connect mongoDB database to the cloud mongoDB Atlas.  \nTo fix this error you just need to take care about the connectivity URI should be having the password. And that passwo..."
url: "https://hashnode.com/posts/mongoapierror-uri-must-include-hostname-domain-name-and-tld/654ba18bceef998b8be9ff54"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [MongoAPIError: URI must include hostname, domain name, and tld](https://iamankursingh.hashnode.dev/mongoapierror-uri-must-include-hostname-domain-name-and-tld?utm_source=hashnode&utm_medium=feed)

This is one of the most common error a beginner use to face when he tries to connect mongoDB database to the cloud mongoDB Atlas. To fix this error you just need to take care about the connectivity URI should be having the password. And that passwo...

Nov 8, 2023 · 1 min read · iamankursingh.hashnode.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#expressjs-cilb5apda0066e053g7td7q24](https://hashnode.com/tag/expressjs-cilb5apda0066e053g7td7q24)
-   [#cloud](https://hashnode.com/tag/cloud)
-   [#cluster](https://hashnode.com/tag/cluster)

## Written by

[Ankur Singh](https://hashnode.com/@iAmAnkurSingh)

@iAmAnkurSingh · India

  
[View profile](https://hashnode.com/@iAmAnkurSingh)

Software Developer

"Dedicated backend developer passionate about crafting robust and scalable applications. Proficient in Node.js, Express.js, MongoDB, and PostgreSQL. Experienced in handling pull requests, ensuring smooth production deployments. Committed to staying up-to-date with industry trends and delivering high-quality solutions on cloud platforms. Here, you'll find a collection of articles on a variety of technical topics, from cloud computing and DevOps to programming languages and web development. Whether you're a beginner or a seasoned pro, there's something here for everyone. Let's dive into the world of technology together!"

## Responses 3

Markdown supported · ⌘↵ to post

[Bhupendra](https://hashnode.com/@BhupendraMaurya)

[Sep 22, 2024](https://hashnode.com/posts/mongoapierror-uri-must-include-hostname-domain-name-and-tld/654ba18bceef998b8be9ff54/comment/66f05865283e4115077c6060)

Thanks bro it worked for me

[Ankur Singh](https://hashnode.com/@iAmAnkurSingh)

[Sep 23, 2024](https://hashnode.com/posts/mongoapierror-uri-must-include-hostname-domain-name-and-tld/654ba18bceef998b8be9ff54/comment/66f05865283e4115077c6060#reply-66f109e5c0938aafd2fb2b85)

Great to see this!

[Ash](https://hashnode.com/@adminAshadmin)

[May 9, 2024](https://hashnode.com/posts/mongoapierror-uri-must-include-hostname-domain-name-and-tld/654ba18bceef998b8be9ff54/comment/663d36bb7ea36d3f25cd9848)

TKS

[Subarnab Sadhukhan](https://hashnode.com/@SubarnabSadhukhan)

[Apr 15, 2024](https://hashnode.com/posts/mongoapierror-uri-must-include-hostname-domain-name-and-tld/654ba18bceef998b8be9ff54/comment/661cabdcb7e09aa9f36aa6b0)

Thank You! It works. 👏🏻

[Ankur Singh](https://hashnode.com/@iAmAnkurSingh)

[Sep 23, 2024](https://hashnode.com/posts/mongoapierror-uri-must-include-hostname-domain-name-and-tld/654ba18bceef998b8be9ff54/comment/661cabdcb7e09aa9f36aa6b0#reply-66f109f73cbfb3db42c3ceeb)

Great to see this !
