简体   繁体   English

错误:insertOne()` 缓冲在 10000 毫秒后超时

[英]Error: insertOne()` buffering timed out after 10000ms

I am at the very beginning of learning Mongoose, and I am having trouble saving this model to my database and keep getting an error: insertOne()` buffering timed out after 10000ms我刚开始学习 ZCCADCDEDB567ABAE643E15DCF0974E503Z,我无法将此 model 保存到我的数据库并不断收到错误:insertOne()` 缓冲在 10000 毫秒后超时

This is my code:这是我的代码:

代码

How can I find a solution for this?我怎样才能找到解决方案?

 const options = { autoIndex: false, // Don't build indexes maxPoolSize: 10, // Maintain up to 10 socket connections serverSelectionTimeoutMS: 5000, // Keep trying to send operations for 5 seconds socketTimeoutMS: 45000, // Close sockets after 45 seconds of inactivity family: 4 // Use IPv4, skip trying IPv6 }; mongoose.connect(uri, options);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MongooseError:操作 `domains.insertOne()` 缓冲在 10000 毫秒后超时 - MongooseError: Operation `domains.insertOne()` buffering timed out after 10000ms MongooseError:操作 `urls.find()` 缓冲在 10000 毫秒后超时 - MongooseError: Operation `urls.find()` buffering timed out after 10000ms com.mongodb.MongoTimeoutException:等待连接时 10000 毫秒后超时 - com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting to connect Mongoose 错误 const err = new MongooseError(message); - 缓冲超时 - Mongoose error const err = new MongooseError(message); - buffering timed out 等待与 WritableServerSelector 匹配的服务器时 30000 毫秒后超时 - timed out after 30000 ms while waiting for a server that matches WritableServerSelector Oracle 在 C# 中发布后连接请求超时 - Oracle Connection request timed out after publish in C# MySql-客户端超时 - MySql - client timed out 汇总连接超时 - pooled connection timed out 为什么我在 mongodb 中收到错误“insertOne 不是函数”? - why am i getting error "insertOne is not a function" in mongodb? ERROR 1970 ER_SUBPROCESS_TIMEOUT_ERROR:创建管道时子进程超时 - ERROR 1970 ER_SUBPROCESS_TIMEOUT_ERROR: Subprocess timed out when creating a pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM