Reaction Commerce Forums

Can't upload image for product

I’m new to reaction commerce. I’m trying to upload a product image and get this error. The container is stopped and can’t automatically restart.

Thanks for your help.

(node:19) DeprecationWarning: GridStore is deprecated, and will be removed in a future version. Please use GridFSBucket instead

`(node:19) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.`

`TypeError: Cannot read property 'message' of undefined`

`at GridFSStore.<anonymous> (/usr/local/src/app/node_modules/@reactioncommerce/file-collections/dist/common/FileCollection.js:85:78)`

`at GridFSStore.emit (events.js:314:20)`

`at GridFSStore.EventEmitter.emit (domain.js:486:12)`

`at GridWriteStream.emitError (/usr/local/src/app/node_modules/@reactioncommerce/file-collections-sa-base/dist/StorageAdapter.js:159:28)`

`at GridWriteStream.emit (events.js:326:22)`

`at GridWriteStream.EventEmitter.emit (domain.js:486:12)`

`at GridWriteStream.FlushWritable.emit (/usr/local/src/app/node_modules/flushwritable/lib/FlushWritable.js:37:31)`

`at GridWriteStream._error (/usr/local/src/app/node_modules/gridfs-stream/lib/writestream.js:246:7)`

`at /usr/local/src/app/node_modules/gridfs-stream/lib/writestream.js:265:8`

`at processTicksAndRejections (internal/process/task_queues.js:75:11)`

`21:28:49.006Z INFO Reaction: Stopping Reaction API...`

`(node:19) DeprecationWarning: collection.save is deprecated. Use insertOne, insertMany, updateOne, or updateMany instead.`

`(node:19) DeprecationWarning: collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead.`

`TypeError: Cannot read property 'message' of undefined`

`at GridFSStore.<anonymous> (/usr/local/src/app/node_modules/@reactioncommerce/file-collections/dist/common/FileCollection.js:85:78)`

`at GridFSStore.emit (events.js:314:20)`

`at GridFSStore.EventEmitter.emit (domain.js:486:12)`

`at GridWriteStream.emitError (/usr/local/src/app/node_modules/@reactioncommerce/file-collections-sa-base/dist/StorageAdapter.js:159:28)`

`at GridWriteStream.emit (events.js:326:22)`

`at GridWriteStream.EventEmitter.emit (domain.js:486:12)`

`at GridWriteStream.FlushWritable.emit (/usr/local/src/app/node_modules/flushwritable/lib/FlushWritable.js:37:31)`

`at GridWriteStream._error (/usr/local/src/app/node_modules/gridfs-stream/lib/writestream.js:246:7)`

`at /usr/local/src/app/node_modules/gridfs-stream/lib/writestream.js:265:8`

`at processTicksAndRejections (internal/process/task_queues.js:75:11)`

`npm ERR! code ELIFECYCLE`

`npm ERR! errno 1`

`npm ERR! reaction-api@3.10.0 start: `node --experimental-modules --experimental-json-modules ./src/index.js``

`npm ERR! Exit status 1`

``

`npm ERR!`

`npm ERR! Failed at the reaction-api@3.10.0 start script.`

`npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

``

`npm ERR! A complete log of this run can be found in:`

`npm ERR! /home/node/.npm/_logs/2020-10-11T21_28_49_322Z-debug.log`

I checked out reaction-development-platform version 3.0.4 and I’m able to upload images. Does anybody know what is the last version that works?