You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//This causes tests to spew some useless warnings, so disable in test
/* istanbul ignore next */
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);
}else{
throwerr;
}
});
process.on('uncaughtException',err=>{if(err.code==='EADDRINUSE'){// user-friendly message for this common errorprocess.stderr.write(`Unable to listen on port ${err.port}. The port is already in use.`);process.exit(0);}});
The text was updated successfully, but these errors were encountered:
❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.
JeffGuKang
changed the title
Server crashed if asynchronous function get error.
Server crashed if asynchronous function get error. (uncaughtException)
Sep 24, 2022
I'm closing this as it does not use the issue template provided when creating an issue and therefore lacks essential information required to investigate the issue. Please edit your initial post using the issue template and we can re-open this issue.
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
The text was updated successfully, but these errors were encountered: