Invalid data source definition: Authentication failed.: generic server error

When I try to connect to the MongoDB database I got error: Invalid data source definition: Authentication failed.: generic server error

In the same time I could connect with this credentials from MongoDB Compass