请求使用Mongo API在CosmoDB上超时

时间:2018-05-18 11:16:03

标签: azure-cosmosdb azure-cosmosdb-mongoapi

我想在使用Mongo API的cosmoDB实例上运行一个非常简单的mongo查询(使用Robo 3T作为mongo客户端)。

db.getCollection('events').aggregate(
    [
    { $match: {customer: "printabled"}},
    /*{ $count: "PEZZI_INC" }*/
    { $group: {
        _id: null,
        /*_id: { day: { $dayOfMonth: "$start_time"}},*/
        totalCOUNTTEMP:{
            $sum:"$AMBIENT_TEMPERATURE"
            }
      }
    }
    ]
);

但我收到以下错误error message picture

如果链接不起作用,这里是文本错误。

Assert: command failed: {
    "_t" : "OKMongoResponse",
    "ok" : 0,
    "code" : 50,
    "errmsg" : "Request timed out.\r\nActivityId: c9fb8aa0-0000-0000-0000-000000000000, Microsoft.Azure.Documents.Common/1.22.0.0",
    "$err" : "Request timed out.\r\nActivityId: c9fb8aa0-0000-0000-0000-000000000000, Microsoft.Azure.Documents.Common/1.22.0.0"
} : aggregate failed
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:16:14
assert.commandWorked@src/mongo/shell/assert.js:370:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1319:5
@(shell):1:1

0 个答案:

没有答案