Перейти к содержимому

Why One Bad Request Crashes a Node Server (Node Backend Series, Part 4)

rge

0:00 / 0:00

Why One Bad Request Crashes a Node Server (Node Backend Series, Part 4)

27 просмотров · 4 дня назад
rge
50 подписчиков
27 просмотров · 4 дня назад
One request with a missing brace, and a Node server goes down for everyone. This episode looks at why an uncaught error stops the whole process, catches it with try/catch, and finds that surviving isn't the same as handling it: the server replied 200 OK to a broken request. Then status codes, a 400 Bad Request, and a second crash hiding right behind the fix. No framework, just Node's built-in http module. Part of a series building a real backend in Node from scratch. Playlist:    • Let's Build a Real Server From Scratch (No...