DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
A service crashes intermittently with 'Unhandled error event', and the crash correlates with occasional upstream network failures. What's the most direct fix?
A
Wrap the entire application in a try/catch
B
Register an explicit .on('error', ...) listener on the emitter that experiences the failures, so the error is handled instead of crashing the process
C
Disable all error events
D
Restart the process after every crash and hope it doesn't recur
Check Answer