Open ChasLui opened 6 years ago
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 v10.1.0
, everything newer than this fails with error @ChasLui mentioned.
I am running into this Error on every Node Version by now. I tried 7.5.0, 8.0.0, 10.1.0 and the latest Stable 10.4.1
Did I miss something?
ok... Got my Error... The Node Version was not applied correctly. I removed my node Installation and reinstalled 10.1.0. Now its Working.
Yeap, was there...
Came back to 10.1.0:
sudo n 10.1.0
and then
git reset --hard
in the c9sdk folder.
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 plugins/c9.vfs.server/vfs.server.js
I really don't know what side effects that will cause, but now I can be productive again.
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:
if(!res.headersSent) res.json({}, 0, 500);
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
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:
if(!res.headersSent) res.json({}, 0, 500);
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