Upgrade to 3.2 breaks GridFS
See original GitHub issueWhile 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Typings updated