Closed deathcap closed 8 years ago
The only place wzrd returns a 500 error is in ./node_modules/wzrd/index.js:
proc.stderr.pipe(concat(function error(err) {
console.log(err);
if (!err.length) return
endLog()
process.stderr.write(err.toString())
res.statusCode = 500
sure enough, err
is set to the so-called "warning": DeprecationWarning: 'GLOBAL' is deprecated, use 'global'. Who is using "GLOBAL"?
voxelmetaverse $ grep -r '\<GLOBAL\>' .
./node_modules/coffee-script/lib/coffee-script/coffee-script.js: sandbox.global = sandbox.root = sandbox.GLOBAL = sandbox;
./node_modules/cwise-parser/index.js: } else if(typeof GLOBAL !== "undefined") {
./node_modules/cwise-parser/index.js: return identifier in GLOBAL
./node_modules/ndarray-fft/node_modules/cwise-parser/index.js: } else if(typeof GLOBAL !== "undefined") {
./node_modules/ndarray-fft/node_modules/cwise-parser/index.js: return identifier in GLOBAL
./node_modules/ndarray-resample/node_modules/cwise-parser/index.js: } else if(typeof GLOBAL !== "undefined") {
./node_modules/ndarray-resample/node_modules/cwise-parser/index.js: return identifier in GLOBAL
Tracked down to cwise-parser, removed in https://github.com/scijs/cwise-parser/pull/4, wzrd bug is https://github.com/maxogden/wzrd/issues/15
Switching to beefy for now as a temporary workaround
Using a clean
npm install
from master as of today, with node v6.1.0 (or v6.0.0), getting a 500 Internal Server error from wzrd, and a "DeprecationWarning: 'GLOBAL' is deprecated, use 'global'" warning (not sure if relevant):http://localhost:8080/ then shows:
GET http://localhost:8080/bundle.js 500 (Internal Server Error)
(works with v5.4.1)