MongoError:"执行Javascript时遇到异常。必须指定查询根目录。"

时间:2017-02-01 13:42:22

标签: azure parse-server azure-cosmosdb

几个月来,我在天蓝色上使用ParseServer没有问题,但是几个小时后我就收到了这个错误:

> 2017-02-01T09:23:51.925Z - Uncaught internal server error. { [MongoError: Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}
ActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p]
name: 'MongoError',
message: 'Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}\r\nActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p',
_t: 'OKMongoResponse',
ok: 0,
code: 2,
errmsg: 'Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}\r\nActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p',
'$err': 'Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}\r\nActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p' } MongoError: Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}
ActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p
at Function.MongoError.create (D:\home\site\wwwroot\node_modules\parse-server\node_modules\mongodb\node_modules\mongodb-core\lib\error.js:31:11)
at D:\home\site\wwwroot\node_modules\parse-server\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:462:72
at authenticateStragglers (D:\home\site\wwwroot\node_modules\parse-server\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:410:16)
at null.messageHandler (D:\home\site\wwwroot\node_modules\parse-server\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:444:5)
at TLSSocket. (D:\home\site\wwwroot\node_modules\parse-server\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:306:22)
at emitOne (events.js:77:13)
at TLSSocket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at TLSSocket.Readable.push (_stream_readable.js:111:10)
at TLSWrap.onread (net.js:536:20)
2017-02-01T09:23:51.925Z - Error generating response. { [MongoError: Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}
ActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p]
name: 'MongoError',
message: 'Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}\r\nActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p',
_t: 'OKMongoResponse',
ok: 0,
code: 2,
errmsg: 'Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}\r\nActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p',
'$err': 'Message: {"Errors":["Encountered exception while executing Javascript. Exception = Error: Invalid argument. Query root must be specified.\r\nStack trace: Error: Invalid argument. Query root must be specified.\n at commonUpdate (.sys.commonUpdate.js:2288:17)\n at docDbMain (.sys.commonUpdate.js:4:5)\n at Global code (.sys.commonUpdate.js:1:2)"]}\r\nActivityId: 3a721634-0000-0000-0000-000000000000, Request URI: rntbd://10.100.100.77:14000/apps/f8a35ed9-3dea-410f-a89a-28650ff41381/services/ab284460-dfd9-4fc6-8366-48ae5708818e/partitions/a108a897-4a3c-44f0-aa7d-477d08f77d67/replicas/131193282907353114p' }

我使用Microsoft提供的工具(https://github.com/felixrieseberg/parse-server-azure)部署解析服务器和数据库。

我在解析服务器版本2.3.1和2.3.2上遇到了问题。我不明白的是,这个问题突然出现在一个迄今为止运作良好的版本(2.3.1)上。

1 个答案:

答案 0 :(得分:0)

Azure团队应该已发布修复程序。我不再看到崩溃了。