Hey everyone!
As I’ve mentioned in other topics, I just upgraded my server from 2.8.4
to 4.3.0
and everything runs smoothly! The only issue is with the images that are stored in mongo
! For some reason, the server cannot find them. The server logs;
0|index | Error: Unsupported state or unable to authenticate data
0|index | at Decipheriv.final (crypto.js:183:26)
0|index | at GridFSBucketReadStream.stream.on (/root/parse-server-example/node_modules/parse-server/lib/Adapters/Files/GridFSBucketAdapter.js:113:78)
0|index | at emitNone (events.js:106:13)
0|index | at GridFSBucketReadStream.emit (events.js:208:7)
0|index | at endReadableNT (_stream_readable.js:1064:12)
0|index | at args.(anonymous function) (/usr/local/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
0|index | at _combinedTickCallback (internal/process/next_tick.js:139:11)
0|index | at process._tickDomainCallback (internal/process/next_tick.js:219:9)
I checked the db to see if the file is missing, but it is there! Is it a known issue? Is there a solution?
EDIT; When I open a file from the dashboard I get;
Safari can’t open the page “‎ip:1337/parse/files/yb4kkwwr70gcdO07qZ1ywucrgRfkA4FU6TttgAgg7TS/3e84ef36611caf1cba7443fc7713eea6_postImage.jpeg” because Safari can’t connect to the server “ip”.
This is my server setup;
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://',
cloud: './cloud-code-repository/main.js',
appId: process.env.APP_ID || '' ,
masterKey: process.env.MASTER_KEY || '' ,
fileKey: 'b5528d30-...',
serverURL: process.env.SERVER_URL || 'http://ip:1337/parse' ,
liveQuery: {
classNames: ['Message', 'ChatRoom'] // List of classes to support for query subscriptions
},
publicServerURL: 'http://ip:1337/parse'
});