"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
demandé il y a 3 ans248 vues
1 réponse
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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions