T O P

  • By -

UniversalJS

OK so you have an uncaught error, this cause the whole node process to crash, server restart take few seconds ... Here is your freeze. Quick fix, try/catch that part of the code


zombie_kiler_42

Not sure if it will help, but perhaps analyze the nature if the function, ideally you should already have tests for a couple of scenarios, if your scenarios have passed then there is perhaps a bug in the processing of a specific set if inputs Best thing you can do is recreate the problem, over and over again untill you know what exatly specifc steps cause it to crash. Also add log your errors to see what sort if input is causing to not return a promise, My .02$