Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No SRV records found when querying url #13

Open
marcstein opened this issue Nov 27, 2021 · 1 comment
Open

No SRV records found when querying url #13

marcstein opened this issue Nov 27, 2021 · 1 comment

Comments

@marcstein
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant