"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
posta 3 anni fa248 visualizzazioni
1 Risposta
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
con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande