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

change the hosts format in mongodb sample config (read me file). #58

Open
mrmagicpotato007 opened this issue Jan 11, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@mrmagicpotato007
Copy link

{
"hosts": [
"127.0.0.1:27017"
],
"username": "test",
"password": "test",
"authdb": "admin",
"srv": true,
"server-ram": 16,
"database": "database",
"max_threads": 50
}

with the above test config based on sample test config in read me , getting the error
{"type":"LOG","log":{"level":"error","message":"error parsing uri: URI with srv must not include a port number"}}

After changing srv to false, it works. Based on this log, when srv is true, we should not pass a port number. I feel the sample config is misleading.

Please close this issue if it’s not needed.

@mrmagicpotato007 mrmagicpotato007 added the bug Something isn't working label Jan 11, 2025
@hash-data
Copy link
Collaborator

Thank you for reporting it out @mrmagicpotato007 would you like to create a Pull Request that fixes the same.

@mrmagicpotato007
Copy link
Author

fixed it in this pr #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants