Build a URL Shortener with FastAPI, MongoDB and Python
Have you ever wondered how to build your personal URL shortener service like bitly or tinyurl 🤓 ?
In this tutorial, we are going to build a simple URL shortener using FastAPI, MongoDB and Python. A URL Shortener is a simple tool that can be used...
simiokunowo.hashnode.dev19 min read
Hi, i'm having a problem with this. When I try to save in the DB, get this error message:
pymongo.errors.ServerSelectionTimeoutError: connection closed,connection closed,connection closed, Timeout: 30s, Topology Description: <TopologyDescription id: 60b8f7ddd8d37c78c48ec0ed, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('cluster0-shard-00-00.n4dkx.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed')>, <ServerDescription ('cluster0-shard-00-01.n4dkx.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed')>, <ServerDescription ('cluster0-shard-00-02.n4dkx.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('connection closed')>]>Can you help me?