Interview practice question
Node.js process crashes on unhandled promise rejections
Backend Engineering · Language Runtimes · Intermediate
After a Node.js upgrade, your service started crashing occasionally with unhandled promise rejection errors. Why, and how do you fix it properly?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Node 15+ crashes on unhandled rejections by default.
- Some promises lack catch/await.
- Find via stack traces; lint rules (no-floating-promises).
- Handle errors at correct level.
- Global handler for logging only.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.