以前,我试图通过将dbURI设置为mongo在单击"connect应用程序“时给您的URI来连接它,但是它没有工作,后来我尝试用mongoDB设置一个本地数据库,在那里下载、设置它等等。我还创建了data/db文件夹,输入罗盘中的链接就可以打开一个空的数据库。尽管如此,猫鼬仍然不允许我连接到数据库,给出了以下错误:
MongoServerError: bad auth : Authentication failed.
at MessageStream.messageHandler (D:\tests\node_modules\mongodb\lib\cmap\connectio
我用node.js制作了一个应用程序。并将其与MongoDB连接。但是当我启动我的服务器时,它会给我一个错误。错误在下面。
在端口5000上监听示例应用程序
MongoServerError: bad auth : Authentication failed.
at Connection.onMessage (C:\Taha\Project\Assignment\11.warehouse\server\node_modules\mongodb\lib\cmap\connection.js:203:30)
at MessageStream.<anonymous> (C:\Taha\P
我正试图为 discord.js 中的不和谐做一个机器人,我无法将它连接到Mongoose数据库: 5.11.14和discord.js ver12.5.3
错误日志:
The Bot has disconnected from the DB.
C:\Users\utilizator\Desktop\discordbot\node_modules\mongodb\lib\cmap\connection.js:299
callback(new MongoError(document));
^
MongoError: bad auth :
我已经使用MongoDB作为数据库创建了一个节点应用程序。我为它们创建了容器,并创建了一个docker-compose文件。但是,当连接MongoDB与我的节点应用程序时,我得到了一个身份验证失败的错误。我想使用docker-compose将我的节点容器与MongoDB容器连接起来。我已设置了所有凭据,但收到身份验证失败错误。 错误: api | MongoError: Authentication failed.
api | at MessageStream.messageHandler (/home/app/node_modules/mongo
当我使用dotenv隐藏密码和用户名时,会发生此错误,但如果我不使用dotenv,则错误将消失:
MongoServerError: bad auth : Authentication failed.
at Connection.onMessage (E:\my work\web development by zhankar\assignment\assignment-11-warehouse\warehouse-backend\node_modules\mongodb\lib\cmap\connection.js:203:30)
at MessageStream.<an
错误: MongoServerError:不允许用户在nodeMongoCrud.users上执行插入操作
server is running on port 5000 MongoServerError: user is not allowed to do action [insert] on [nodeMongoCrud.users] at Connection.onMessage (G:\web-development-projects-list\milestone-11\node-mongo-crud-server\node_modules\mongodb\lib\cmap\connec
我试图学习MongoDB CRUD操作以及节点快递js。
当我尝试使用“”时,它会抛出以下错误:
D:\Projects_WebDev\BackEnd\server-genius-car-service\node_modules\mongodb\lib\cmap\connection.js:207
callback(new error_1.MongoServerError(document));
^
MongoServerError: user is not allowed to do act
我正在尝试使用以下代码在新集合中insertOne更多文档:
await client.db(db).collection(newCollection).insertOne(newDocument);
但是,这会遇到错误代码8000,这在这里没有记录:。
MongoServerError: cannot create a new collection -- already using 500 collections of 500
at Connection.onMessage (/home/pi/projects/myProject/node_modules/mongodb/lib/c
我在openshift online上运行了一个mongoservice,我还有一个nodejs应用程序在运行。然而,这个应用程序似乎没有连接到openshift上的mongodb,但它在我的windows 10本地运行得很好
以下是Openshift控制台终端的完整日志。
OLA server running on port 8080
Not Connected to Database, ERROR! { MongoNetworkError: failed to connect to server [127.0.0.1:27017] on first connect [MongoNetwo
我正在尝试连接到mongodb。我用的是adonisJS和猫鼬。Mongodb连接字符串是正确的,我已经创建了todo数据库。但是我得到了Authentication failed错误。
MongoServerError: Authentication failed.
at Connection.onMessage (/opt/projects/demo/adonis-demo/adonis-mongoose-project/node_modules/mongodb/src/cmap/connection.ts:438:20)
at MessageStream.<anon