MongoDB 10320 BSONElement:坏类型73

时间:2018-06-12 11:51:31

标签: mongodb symfony doctrine-odm

当我使用symfony ODM从mongo db获取数据时出现错误 10320 BSONElement:bad type 73

我在mongo中尝试查询

{
"message" : "BSONElement: bad type 73",
"stack" : "MongoError: BSONElement: bad type 73" +
          "at queryCallback (/tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/cursor.js:208:23)" +
          "at /tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/connection/pool.js:541:18" +
          "at _combinedTickCallback (internal/process/next_tick.js:131:7)" +
          "at process._tickCallback (internal/process/next_tick.js:180:9)",
"name" : "MongoError",
"$err" : "BSONElement: bad type 73",
"code" : 10320
}

我也尝试修复数据库,但同样的错误显示在那里。

{
"message" : "exception: BSONElement: bad type 73",
"stack" : "MongoError: exception: BSONElement: bad type 73" +
          "at /tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/connection/pool.js:595:61" +
          "at authenticateStragglers (/tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/connection/pool.js:513:16)" +
          "at Connection.messageHandler (/tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/connection/pool.js:549:5)" +
          "at emitMessageHandler (/tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/connection/connection.js:309:10)" +
          "at Socket.<anonymous> (/tmp/.mount_MongoB7jyNlG/app/resources/app.asar/node_modules/mongodb-core/lib/connection/connection.js:452:17)" +
          "at emitOne (events.js:115:13)" +
          "at Socket.emit (events.js:210:7)" +
          "at addChunk (_stream_readable.js:252:12)" +
          "at readableAddChunk (_stream_readable.js:239:11)" +
          "at Socket.Readable.push (_stream_readable.js:197:10)" +
          "at TCP.onread (net.js:589:20)",
"name" : "MongoError",
"errmsg" : "exception: BSONElement: bad type 73",
"code" : 10320,
"ok" : 0
}

0 个答案:

没有答案