Answer the question
In order to leave comments, you need to log in
Why is Node.js dying without messages?
On the server, I run nodejs through nohup something like this: nohup node main.js >>my.log 2>&1 &
But for the second time it crashes, and there are no entries about the error in the log.
CentOS 6.7, node 4.4.0. The script is simple, it has no planned exits.
CHYADNT and where to complain?
PS Asynchronous errors are fine in the log file. proof:
Answer the question
In order to leave comments, you need to log in
A crash without an error occurs where errors are not caught in asynchronous mode, apparently you do not follow the try catch recommendation.
Since the author does not believe, here is the code:
const test = ()=>{
return new Promise((resolve, reject) =>{
new_error();
resolve(true);
});
};
test();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question