Parse server - File not found

前提是你 提交于 2019-12-11 15:45:57

问题


Parse server version: 2.8.4

Parse dashboard version: 1.2.0

MongoDB version: 4.0.2

Hosting service: DigitalOcean

=================================

I'm transferring my app to a new Parse server and a new MongoDB server. Everything works fine except the fact that I can't load any images! The content is being fetched properly, but the images don't load. Neither from the app, nor from the dashboard. (I get the File not found. there)

Here's how I transferred my db: mongodump --host sourceIP -d dbName --port 27017

and then to load it: mongorestore --db dbName dbDir --username “username” —password "password" --authenticationDatabase "admin"

I did a db.fs.files.find() and the images seem to be there just fine!

I also tried uploading a new image file and got the error: error 130. Could not store file.

I believe that this is a db-side issue, because I tested the parse server with another MongoDB I have and it was working!

I also tried creating a new droplet and redo everything, but it didn't fix it!

Any suggestions?


回答1:


I spent 2.5 days of my life, full of stress, just because I had the symbol & in my auth password, inside my databaseURI! For some reason, it doesn't affect fetching the data but it does affect fetching images!



来源:https://stackoverflow.com/questions/52569868/parse-server-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!