Error with MongoDB connection string

Summary

The error is caused by an invalid host in the MongoDB connection string. The port specified is not a valid integer between 0 and 65535.


Question

Caused by: java.lang.IllegalArgumentException: The connection string contains an invalid host ‘mongodb+srv:’. The port ‘’ is not a valid, it must be an integer between 0 and 65535



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["mongodb-connector", "java", "invalid-host", "connection-string", "port"]