webwhiz icon indicating copy to clipboard operation
webwhiz copied to clipboard

Support mongodb authentication

Open runephilosof-abtion opened this issue 6 months ago • 1 comments

I tried enabling authentication on mongodb and included it in mongodb_url=mongodb://username:password@mongodb:27017/' but got this error

MongoServerError: Command createIndexes requires authentication
    at Connection.onMessage (/node_modules/mongodb/lib/cmap/connection.js:201:30)
    at MessageStream.<anonymous> (/node_modules/mongodb/lib/cmap/connection.js:59:60)
    at MessageStream.emit (node:events:517:28)
    at MessageStream.emit (node:domain:489:12)
    at processIncomingData (/node_modules/mongodb/lib/cmap/message_stream.js:124:16)
    at MessageStream._write (/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at Socket.ondata (node:internal/streams/readable:809:22)
    at Socket.emit (node:events:517:28)
    at Socket.emit (node:domain:489:12)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:341:9)
    at Readable.push (node:internal/streams/readable:278:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

runephilosof-abtion avatar Aug 14 '24 07:08 runephilosof-abtion