我的逻辑应用程序从 api rest 收集数据并插入到 cosmosdb mongodb 中。该过程成功发生,但使用数据资源管理器执行查询时出现以下错误:
Error while fetching page of documents: {"code":400,"body":"Command find failed: Unknown server error occurred when processing this request."}
以下是重现错误的调用示例:
"Create_or_update_document": {
"inputs": {
"body": {
"id": "11111",
"name": "john",
"surname": "doe"
},
"host": {
"connection": {
"name": "@parameters('$connections')['documentdb']['connectionId']"
}
},
"method": "post",
"path": "/dbs/@{encodeURIComponent('cockpit')}/colls/@{encodeURIComponent('target-collection')}/docs"
},
"runAfter": {
"HTTP_2": [
"Succeeded"
]
},
"type": "ApiConnection"
}
示例输入:
{
"id": "11111",
"name": "john",
"surname": "doe"
}
我一直在探索的是与 ObjectId 的创建有关的东西。有谁知道解决方案?