Javier Baena

Results comments of Javier Baena

Hi Mar! During development I found some inconsistencies in the sentinels documentation, both messages not documented and events emitted with different messages than the ones documented, so there may be...

Hi again! I have been testing a 'simplified' environment with 4 masters, 4 slaves and 2 sentinels and indeed found that, if psubscribing to '+switch-master' I was getting all 8...

Great! I'll leave this issue closed at the moment, and will reopen it if I get any notice that the fix didn't solve it. Once again, thanks for reporting! :D

Hi @yrshaikh , could you provide a little more context or an example so I can understand better your question?

Hi @vkarpov15 We have performed some tests locally and have seen that in this line https://github.com/Automattic/mongoose/blob/master/lib/schema/objectid.js#L147 ...the error that is being catched and transformed into a CastError is this: ```...

~~Reinstalling deps fixes this at least in my local env~~. Still ... don't know if the dependency for bson should be fixed in the package.json to avoid this unexpected behaviours...

Looks like there's already a PR in the `bson` module that fixes the root of this problem https://github.com/mongodb/js-bson/issues/204

I think this is related to the upgrade of the bson package. See here https://github.com/Automattic/mongoose/issues/4860 ...Although I have tried installing all dependencies so we get the latest version of bson...

Everything goes back to this issue in the bson package, I'm afraid: https://github.com/mongodb/js-bson/issues/204

It definitely depends on the node version, as explained here https://github.com/mongodb/js-bson/issues/204 ... I'm not sure there's anything that can be done from this side (mongoose)... as AFAIK the issue comes...