nosinovacao / name-sdk

A dependencies management library designed to expose and access dependencies information.
BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Error "Don’t know elementType=17" with MongoDB version checking #38

Closed ctorrao closed 5 years ago

ctorrao commented 5 years ago

In some scenarios, the MongoDB version checker, cannot read correctly the BSON format for a specific datatype, in this case the timestamp format.

Error message: "[Error] Don’t know elementType=17"

MongoDB version: v3.4.15

DataTypes: https://docs.mongodb.com/manual/reference/operator/query/type/

Symbianx commented 5 years ago

There is some field that is being returned now in the serverStatus command which was not sent before. We should add support for the timestamp datatype (and all other types missing).

These are all the types we should support, including the one we don't have now.

This is the command we use to get the MongoDB version.

ctorrao commented 5 years ago

it was solved in NAME v1.2.1