cryomongo icon indicating copy to clipboard operation
cryomongo copied to clipboard

No SRV records found when querying url

Open marcstein opened this issue 4 years ago • 1 comments

Applications previously have worked fine with our standard configuration for several years, e.g.

Moongoon.connect("mongodb+srv://marcstein:[email protected]", database_name: "underwrite")

They are now generating an error

2021-11-27T17:58:47.523219Z INFO - moongoon: Connecting to MongoDB @ mongodb+srv://marcstein:[email protected] Unhandled exception: Invalid uri: mongodb+srv://marcstein:[email protected], No SRV records found when querying url: underwrite.vbut1.mongodb.net (Mongo::Error) from lib/cryomongo/src/cryomongo/uri/uri.cr:106:5 in 'parse' from lib/cryomongo/src/cryomongo/client.cr:65:55 in 'initialize:connection_string:options:start_monitoring' from lib/cryomongo/src/cryomongo/client.cr:60:5 in 'initialize' from lib/cryomongo/src/cryomongo/client.cr:59:3 in 'new' from lib/moongoon/src/database/database.cr:104:7 in 'connect:database_name' from src/compnet.cr:37:1 in '__crystal_main' from /opt/homebrew/Cellar/crystal/1.2.2/src/crystal/main.cr:110:5 in 'main_user_code' from /opt/homebrew/Cellar/crystal/1.2.2/src/crystal/main.cr:96:7 in 'main' from /opt/homebrew/Cellar/crystal/1.2.2/src/crystal/main.cr:119:3 in 'main'

Is this related to a version or driver mismatch?

Thanks!

Marc

marcstein avatar Nov 27 '21 18:11 marcstein

I've found that the code runs fine under Linux, just fails on a Mac.

marcstein avatar Nov 27 '21 18:11 marcstein