parse-server-example icon indicating copy to clipboard operation
parse-server-example copied to clipboard

How to update parse-server?

Open benc555 opened this issue 10 years ago • 8 comments

Getting the following issue when trying to interact with Parse--just deployed to Heroku.

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

Anyone know why this is happening and how to fix it?

benc555 avatar Mar 04 '16 09:03 benc555

I saw #40 but not helpful

benc555 avatar Mar 04 '16 09:03 benc555

I’m basically in the same place but one step forward maybe. That error for me was because the app can’t connect to the DB. I’m using ObjectRocket which needs the IP address whitelisted.

I worked that out by checking $ heroku logs —tail

So now I have added “Fixie” to Heroku so that I can get a static IP, but that still doesn’t solve it because I need to make the parse-server-example app actually use the proxy of Fixie.

And that isn’t turning out to be as simple as it sounds, at least for me (this is my first node experience :)).

Hope that helps!

On 4 Mar 2016, at 10:27, Ben Cormier [email protected] wrote:

Getting the following issue when trying to interact with Parse--just deployed to Heroku.

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

Anyone know why this is happening and how to fix it?

— Reply to this email directly or view it on GitHub https://github.com/ParsePlatform/parse-server-example/issues/90.

threegoblins avatar Mar 04 '16 09:03 threegoblins

@threegoblins so, to confirm, your MongoDB is not hosted through Heroku?

benc555 avatar Mar 04 '16 09:03 benc555

Correct, hosted by ObjectRocket. Although I am kinda regretting that as a Heroku hosting probably would have been simpler…

You’re hosted with Heroku? Hopefully you won’t be having the same error then.

But either way checking your app logs on Heroku should reveal more information for you as to why the 500 is happening.

On 4 Mar 2016, at 10:33, Ben Cormier [email protected] wrote:

@threegoblins https://github.com/threegoblins so, to confirm, your MongoDB is not hosted through Heroku?

— Reply to this email directly or view it on GitHub https://github.com/ParsePlatform/parse-server-example/issues/90#issuecomment-192206196.

threegoblins avatar Mar 04 '16 09:03 threegoblins

perhaps to update, pull the latest .zip of parse-server from the github and replace it with the parse-server folder in node_modules.

not 100% if this is correct.

occurrentarts avatar Mar 04 '16 23:03 occurrentarts

calling 'npm update parse-server' might also work, but it filled my node_modules folder with a ton of other stuff too.

occurrentarts avatar Mar 05 '16 00:03 occurrentarts

I'd recommend editing your package.json file and updating the parse-server entry, then running npm install. If you are hosting on Heroku, the npm install should happen when you git push to your server.

drew-gross avatar Mar 05 '16 02:03 drew-gross

I am getting following error when trying to requestPasswordReset. My Parse server version is : 1.0.0 {"level":"error","message":"Uncaught internal server error. [TypeError: promiseHandler(...).then is not a function] TypeError: promiseHandler(...).then is not a function\n at parse/node_modules/parse-server/lib/PromiseRouter.js:286:27\n

also email is not going.

w3care25 avatar Feb 24 '17 12:02 w3care25