Closed
Description
Parse Server crashed when I call some asynchronous function that throws error.
I resolved issue patch the code as below.
uncaughtException
I think process.on('uncaughtException', ...) throw error
should be treat in client instead of parse.
How about changing code as below?
parse-server/src/ParseServer.js
Lines 193 to 204 in b64640c
process.on('uncaughtException', err => {
if (err.code === 'EADDRINUSE') {
// user-friendly message for this common error
process.stderr.write(`Unable to listen on port ${err.port}. The port is already in use.`);
process.exit(0);
}
});