azure-cosmosdb - 使用 Mongo API 在 CosmoDB 上请求超时
问题描述
我想使用 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"
}
}
}
]
);
但我收到以下错误错误消息图片
如果链接不起作用,这是文本错误。
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
解决方案
推荐阅读
- python - PyQt5 dbus:强制信号参数的类型签名为字符串数组
- java - 使用 Spark Java 将数据帧写入外部分区 Hive 表时出现 Spark 异常
- java - 我的蛮力机器(使用 selenium 和 web 驱动程序使用 java 构建)速度太快,即使使用正确的登录信息也无法正确登录
- javascript - 语义 UI 中的表体反应没有表行导致 validateDomNesting 错误
- c++ - 没有 Emscripten,如何使用标准库将 C++ 编译为 WebAssembly
- javascript - 邮递员测试抛出错误:TypeError:无法读取未定义的属性“ProjectNumber”
- symfony - Symfony 3.4 - 将 parameters.yml/config_test.yml 中的变量注入测试用例
- r - 根据r中的另一列更改一列的值
- python - 类之外的函数是什么?
- python - 跟随我的鼠标但停留在圆圈上的弧线