Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after migrating data to MongoDB #304

Closed
talkaboutdesign opened this issue Feb 8, 2016 · 4 comments
Closed

Error after migrating data to MongoDB #304

talkaboutdesign opened this issue Feb 8, 2016 · 4 comments

Comments

@talkaboutdesign
Copy link

I deployed Parse server on Heroku. Everything worked great when database was blank, I even tried creating , updating, and fetching objects from it to test. Worked amazing.

I started migration process from Parse, and now I am in the stage where I would like to verify that data is working. I haven't pressed finish migration on Parse.com. Want to test my own parse server first.

Data is in the DB. Everything looks good. When I try to fetch objects from it I get this error in Xcode:

[Error]: {"code":1,"message":"Internal server error."} (Code: 1, Version: 1.12.0)
[error: {"code":1,"message":"Internal server error."}, NSLocalizedDescription: {"code":1,"message":"Internal server error."}, code: 1]

Heroku Logs show this:

2016-02-08T21:25:51.046324+00:00 app[web.1]: Uncaught internal server error. [Error: Invalid mongoURI: URL IS HERE HIDING FOR SECURITY] Error: Invalid mongoURI: URL IS HERE HIDING FOR SECURITY
2016-02-08T21:25:51.046328+00:00 app[web.1]:     at ExportAdapter.connect (/app/node_modules/parse-server/ExportAdapter.js:39:11)
2016-02-08T21:25:51.046331+00:00 app[web.1]:     at new Config (/app/node_modules/parse-server/Config.js:16:35)
2016-02-08T21:25:51.046334+00:00 app[web.1]:     at trim_prefix (/app/node_modules/parse-server/node_modules/express/lib/router/index.js:312:13)
2016-02-08T21:25:51.046335+00:00 app[web.1]:     at Function.process_params (/app/node_modules/parse-server/node_modules/express/lib/router/index.js:330:12)

I checked my Mongo URI and it looks good. Not sure what the issue is.

@talkaboutdesign
Copy link
Author

Looks like its in relationship to this issue, when changed database to production Mongodb URL has this prefixed:
?replicaSet=rs-ds829292

@adamontherun
Copy link

@talkaboutdesign its this issue that's causing it to fail

@remi
Copy link

remi commented Feb 12, 2016

I think this has been solved by #297, right? [email protected] works correctly for me with a MongoDB replica set URI.

@gfosco gfosco closed this as completed Mar 2, 2016
@gfosco
Copy link
Contributor

gfosco commented Mar 2, 2016

Assuming this was fixed. If there is a problem with the latest version, please open a new issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants