Skip to content

No SRV records found when querying url #13

@marcstein

Description

@marcstein

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

Moongoon.connect("mongodb+srv://marcstein:xxxxxx@underwrite.vbut1.mongodb.net", database_name: "underwrite")

They are now generating an error

2021-11-27T17:58:47.523219Z INFO - moongoon: Connecting to MongoDB @ mongodb+srv://marcstein:xxxxxxx@underwrite.vbut1.mongodb.net
Unhandled exception: Invalid uri: mongodb+srv://marcstein:xxxxxxxx@underwrite.vbut1.mongodb.net, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions