"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
asked 3 years ago240 views
1 Answer
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
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions