mongodb: doesn't support SRV connection strings #165

Closed
opened 2026-04-05 16:15:53 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @vixalien on 2/3/2026

It seems this doesn't support mongodb+srv:// connection strings:

failed to ping MongoDB database 'rwarri-org': server selection error: context deadline exceeded, current topology: { Type: Unknown, Servers: [{ Addr: cluster0.5ma9r.mongodb.net:27017, Type: Unknown, Last error: dial tcp: lookup cluster0.5ma9r.mongodb.net on 127.0.0.11:53: no such host }, ] }

This is the connection URI they give you on MongoDB atlas:

mongodb+srv://<username>:<db_password>@cluster<id>.mongodb.net/?appName=Cluster0
*Originally created by @vixalien on 2/3/2026* It seems this doesn't support `mongodb+srv://` connection strings: ``` failed to ping MongoDB database 'rwarri-org': server selection error: context deadline exceeded, current topology: { Type: Unknown, Servers: [{ Addr: cluster0.5ma9r.mongodb.net:27017, Type: Unknown, Last error: dial tcp: lookup cluster0.5ma9r.mongodb.net on 127.0.0.11:53: no such host }, ] } ``` This is the connection URI they give you on MongoDB atlas: ``` mongodb+srv://<username>:<db_password>@cluster<id>.mongodb.net/?appName=Cluster0 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#165