question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade to 3.2 breaks GridFS

See original GitHub issue

While 3.1 works perfectly, 3.2.x for me gets:

TypeError: this.db.on is not a function
    at GridFSStorage._setDb (/Users/malix/Temp/nz/node_modules/multer-gridfs-storage/lib/gridfs.js:253:6)
    at MongoClient.connect (/Users/malix/Temp/nz/node_modules/multer-gridfs-storage/lib/gridfs.js:209:12)
    at connectCallback (/Users/malix/Temp/nz/node_modules/mongodb/lib/mongo_client.js:515:5)
    at /Users/malix/Temp/nz/node_modules/mongodb/lib/mongo_client.js:449:13
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

connectiing with:

import * as GridFsStorage from 'multer-gridfs-storage';
const storage = new GridFsStorage({
    url: config.secrets.uris,
    //...
});```

!?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
devconceptcommented, Sep 25, 2018

Fixed in version 3.2.3

For TS users: Typings for v3 (caching and other features) are already updated and will be available in a few days.

0reactions
devconceptcommented, Oct 11, 2018

Typings updated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading from the 3.12 Java driver - GitHub Pages
The main change to the MongoDB Reactive Streams Java Driver 1.12 driver is the removal of the Success type. Breaking changes are as...
Read more >
Mongo update to 3.2 gives error 'GridFS: Index with name
Then I just put a new file with mongofiles and it has recreated the index. I have re-indexed by security but maybe it...
Read more >
How to Upgrade MongoDB Versions Without Downtime
Adamo Tonete (Percona) delivers the talk, "How to Upgrade MongoDB Versions Without Downtime", on DAY 2 of the Percona Live Open Source ...
Read more >
How to scale MongoDB/GridFS for fast ingestion on limited ...
Kubernetes (cloud agnostic); MongoDB with GridFS sharded for scalability ... MongoDB Sharded Cluster Upgrade from 2.4 to 3.2 version.
Read more >
Error while inserting file in gridFS with pymongo driver
No chunk and hence no files got inserted into gridfs. ... Can you list the upgrade path of this node prior to MongoDB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found