Open nickwallen opened 9 years ago
I am seeing this problem too on RHEL 6. I believe the error is occurring in the lib/modules/es-proxy.js code, but I'm not sure how to progress it. I note that the dependency is on v1.3.0 of the http-proxy code, and the current version is v1.11.1, looks like the API has changed too. I'll keep looking.
ubuntu 14.10 same error:
warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms Loading config from /home/engine/.opensoc-ui Loading config from /home/engine/.opensoc-ui
util.js:555
ctor.prototype = Object.create(superCtor.prototype, {
^
TypeError: Cannot read property 'prototype' of undefined
at Object.exports.inherits (util.js:555:43)
at Object.<anonymous> (/usr/local/lib/node_modules/opensoc-ui/node_modules/http-proxy/lib/http-proxy/index.js:108:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/opensoc-ui/node_modules/http-proxy/lib/http-proxy.js:4:17)
at Module._compile (module.js:456:26)
worker 95209 died
util.js:555
ctor.prototype = Object.create(superCtor.prototype, {
^
TypeError: Cannot read property 'prototype' of undefined
at Object.exports.inherits (util.js:555:43)
at Object.<anonymous> (/usr/local/lib/node_modules/opensoc-ui/node_modules/http-proxy/lib/http-proxy/index.js:108:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/opensoc-ui/node_modules/http-proxy/lib/http-proxy.js:4:17)
at Module._compile (module.js:456:26)
worker 95210 died
error: Forever detected script exited with code: 0
Hi. I got it working! :-) I wrote a small express app with a dependency on http-proxy version 1.3.0. It crashed with the same error. I found that by removing the dependency on http-proxy 1.3.0 in the package.json file, and updating it to version 1.11.1, everything works. Hope this helps. I'll submit a pull request as soon as I can.
We can see https://travis-ci.org/OpenSOC/opensoc-ui/builds/58856546 how to success.
I am following the "Development" instructions. I am able to launch the Ubuntu image through Vagrant, but the tests fail when I attempt to run them. I see a similar error when I attempt to launch the server.
Test Failure
Launch Server Failure