-
Notifications
You must be signed in to change notification settings - Fork 921
Cannot set headers after they are sent to the client #496
Comments
I had the same problem. But I didn't use the proxy. The same error when I tried to initialize the ide. I fixed it by use node v7.5 except node v10 |
Node v8 also works. I have also seen c9 core running on node v9 and v10 fail with this error. |
The latest working version is |
I am running into this Error on every Node Version by now. Did I miss something? ok... Got my Error... |
Yeap, was there... |
I encountered this problem. For many reasons I couldn't change the nodejs version, but I "fixed" the problem by commenting out line 141 on Just thought I'd share my experience |
@LeonardoCurvelo works perfect now :) |
Better than commenting out the line, just modify it to check if headers have been already sent before sending a new response to the client:
|
Fix issue #496: Cannot set headers after they are sent to the client
I think the best way is to set a variable outside the block of your code and assign it to what ever to be sent out and finally outside the block send out only one output, passing the variable as what to send out |
Yes, I have Node js v11.9.0 with Express.js Server 4.16.4 and this resolve the problem |
i use nginx proxy 80 port to localhost:8181 , nginx.conf
error
The text was updated successfully, but these errors were encountered: