"Bad value" response when executing mongodb query

0

Dear all,

I am working on adjusting our mongoDB base codebase to DocumentDB.
Some of the queries we are sending are ending up with "Bad value" response, without much explanation (it would be great if more insights be available from errors, like CosmosDB are doing ...)

This is the query we are trying to execute: https://pastebin.com/p9ymGynR (could not paste it into the forum since its breaks the text)

The answer from this is very cryptic message:

'Bad value' on server xxx.xxx.xxx.xxx:27017. The full response is {"ok": 0.0, "operationTime": {"$timestamp": {"t": 1627819716, "i": 1}}, "code": 2, "errmsg": "Bad value"}

Can you someone help to shed light into the reason of such answers?

Edited by: gutzeit on Aug 1, 2021 5:44 AM

Edited by: gutzeit on Aug 1, 2021 5:46 AM

Edited by: gutzeit on Aug 1, 2021 5:49 AM

gutzeit
已提问 3 年前248 查看次数
1 回答
0

After further investigation, I can see that the first "in" part causes the issue, as if in does not support complex objects?

Edited by: gutzeit on Aug 1, 2021 6:36 AM

gutzeit
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则