Back to top

Better Browsers:


Parse Migration Heroku server timeout - Node JS

January 23, 2017

Hi Everyone,

Recently I migrated the Parse Server backed for one of the applications I was developing to Heroku and since Parse Server became open source, I
continued to use it as the backend server.

I noticed an issue that wasn't mentioned in many places on the web. The server timeout response seem to be not handled properly out of the box and the server was crashing if a long process didn't finish execution for whatever reason.

To be able to handle this (thanks for help from Heroku guys), I wrote the below code using node.js on server side:

By doing so, if a process takes longer than 4 seconds, it is automatically killed, allowing your server
to remain up and alive.

I hope this helps someone out there.



Add Comment:


hello wrote on October 29, 2017:

What did you think of the process to put parse on heroku?