Search
Server Crashing with "Cannot set headers after they are sent to the client"
- M.R

- Jan 3, 2024
- 1 min read
Phenomenon
I want to set up a local server using http-server and check the contents of a static html file.
When I start http-server with the following command
http-server -c-1error in title occurred.
Solution
I don't really know the cause, but it seems to be caused by an old version of node.js.
The above phenomenon occurred in version 10, but after upgrading to version 16, the error no longer occurred
![[Node.js/cloud functions] Send mail from yahoo mail account with nodemailer](https://static.wixstatic.com/media/90b712_ce2fe086845d4849a9f7ec657ed52c36~mv2.png/v1/fill/w_980,h_712,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/90b712_ce2fe086845d4849a9f7ec657ed52c36~mv2.png)






Comments