"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
preguntada hace 3 años248 visualizaciones
1 Respuesta
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
respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas