Matt Goodrich
Matt Goodrich

Reputation: 5095

Update MongoDB Driver for WebStorm plugin

I'm trying to use the "Mongo Plugin" within WebStorm on OSX. Two collections in my database are listing successfully within the IDE, but when I try to open other collections I receive error messages such as:

org.bson.BsonSerializationException: Detected unknown BSON type "\x13" for fieldname "myfield. Are you using the latest driver version?

The field generating this error message is the type BigDecimal, which is relatively new. I've confirmed the path to my mongo shell is correct within the plugin at /usr/local/bin/mongo.

What should I do to update the driver? I have researched this problem and know the location of the MongoDB drivers, but I have no idea which one to update for the plugin (or how).

Also, I verified any versions of Mongo through homebrew and npm are updated. These are probably not relevant.

NPM -g:

npm install -g mongodb
/usr/local/lib
└─┬ [email protected]
  ├── [email protected]
  ├─┬ [email protected]
  │ ├── [email protected]
  │ └─┬ [email protected]
  │   ├── [email protected]
  │   └── [email protected]
  └─┬ [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]

Brew:

brew install mongo
Warning: mongodb-3.4.2 already installed

Also the version of Mongo on the target server:

mongo --version
MongoDB shell version v3.4.1
git version: 5e103c4f5583e2566a45d740225dc250baacfbd7
OpenSSL version: OpenSSL 1.0.1t  3 May 2016
allocator: tcmalloc
modules: none
build environment:
    distmod: debian71
    distarch: x86_64
    target_arch: x86_64

Upvotes: 0

Views: 353

Answers (1)

Matt Goodrich
Matt Goodrich

Reputation: 5095

Thanks to the link provided by LazyOne, I discovered the plugin simply does not provide support for the Decimal type through this issue as of this date.

Upvotes: 1

Related Questions