I start a 4.7.0 standalone mongod like:
mongod --setParameter requireApiVersion=true
If I don’t include apiVersion: "1" in the getMore command, I get the error:
{ “ok”: 0.0, “errmsg”: “The apiVersion parameter is required, please configure your MongoClient’s API version”, “code”: 498870, “codeName”: “Location498870" }
and if I do include it I get:
{
“ok”: 0.0,
“errmsg”: “Cannot pass in API parameter field apiVersion”,
“code”: 4937600,
“codeName”: “Location4937600"
}
According to spec the server should not accept api version in getMore commands:
The getMore command does not accept API parameters; cursors inherit their API parameters from the initiating command.
so I expect the second error but not the first.
- related to
-
SERVER-49377 Ensure transactions inherit API parameters of initiating command
- Closed
-
SERVER-56925 Remove requireApiVersion server parameter?
- Closed