You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It contains several hosts, separated by commas, which is of course allowed according to MongoDB's Connection String URI Format. Yet, due to commit 1d8a84b, where the library tries to parse this connection string via the new URL(...) constructor, initializing fails.
Current Behavior
When supplying such a connection string with multiple hosts, an error is thrown: TypeError [ERR_INVALID_URL]: Invalid URL: ..., because the URL constructor cannot handle several hosts separated by commas in one URL.
Expected Behavior
No error is thrown.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Consider this connection string:
It contains several hosts, separated by commas, which is of course allowed according to MongoDB's Connection String URI Format. Yet, due to commit 1d8a84b, where the library tries to parse this connection string via the
new URL(...)
constructor, initializing fails.Current Behavior
When supplying such a connection string with multiple hosts, an error is thrown:
TypeError [ERR_INVALID_URL]: Invalid URL: ...
, because theURL
constructor cannot handle several hosts separated by commas in one URL.Expected Behavior
No error is thrown.
The text was updated successfully, but these errors were encountered: