蒙戈错误:"Encountered exception while executing Javascript. Query root must be specified."



几个月来,我在 azure 上使用 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.rnStack 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.rnStack 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)"]}rnActivityId: 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.rnStack 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)"]}rnActivityId: 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.rnStack 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)"]}rnActivityId: 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.rnStack 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:homesitewwwrootnode_modulesparse-servernode_modulesmongodbnode_modulesmongodb-coreliberror.js:31:11)
at D:homesitewwwrootnode_modulesparse-servernode_modulesmongodbnode_modulesmongodb-corelibconnectionpool.js:462:72
at authenticateStragglers (D:homesitewwwrootnode_modulesparse-servernode_modulesmongodbnode_modulesmongodb-corelibconnectionpool.js:410:16)
at null.messageHandler (D:homesitewwwrootnode_modulesparse-servernode_modulesmongodbnode_modulesmongodb-corelibconnectionpool.js:444:5)
at TLSSocket. (D:homesitewwwrootnode_modulesparse-servernode_modulesmongodbnode_modulesmongodb-corelibconnectionconnection.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.rnStack 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.rnStack 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)"]}rnActivityId: 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.rnStack 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)"]}rnActivityId: 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.rnStack 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)"]}rnActivityId: 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)上。

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

最新更新