Hello Everyone, I am trying to eshtablish connect...
# getting-started
a
Hello Everyone, I am trying to eshtablish connection with MongoDB, using the below connection string. However, I am getting the below error. Any suggestion for the same would be helpful.
Copy code
source:
    type: mongodb
    config:
        connect_uri: '<mongodb://00.000.00.000>:PORT'
        username: XXXX
        password: XXXX
        authMechanism: DEFAULT
        enableSchemaInference: true
        useRandomSampling: true
        maxSchemaSize: 300
Copy code
Error:
datahub.ingestion.run.pipeline.PipelineInitError: Failed to configure the source (mongodb): Authentication failed., full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed'}
1
d
Hi, I think this fails authentication, so you must double-check your configs. One thing you can do is check if there are special letters that need to be escaped: https://datahubspace.slack.com/archives/CUMUWQU66/p1635948594198400?thread_ts=1635941575.193100&amp;cid=CUMUWQU66