nodester/nodester — Issue #284: Issues about files with node 0.4.9
Author: albertosantini
Created: 2012-01-24 23:18:06+00:00
State: open

With node 0.4.9, using readFileSync I get

Error: EBADF, Bad file descriptor '/node_modules/trammi/lib/db/line_01_0.xml'

Changing the logic to async read, I get an error with xml2js module (converting from xml to json):

(node) warning: possible EventEmitter memory leak detected. 11 listeners added.
Use emitter.setMaxListeners() to increase limit.

Trace:
at Parser. (events.js:126:17)
at Parser. (/node_modules/trammi/node_modules/xml2js/lib/xml2js.j
s:132:14)
at Parser.parseString (/node_modules/trammi/node_modules/xml2js/lib/xml2js.j
s:3:63)
at /node_modules/trammi/lib/trammiDB.js:86:16
at [object Object]. (fs.js:80:5)
at [object Object].emit (events.js:64:17)
at fs.js:820:12

I get also:

Error: ENOENT, No such file or directory '/node_modules/trammi/lib/public/favicon.ico'

Locally, using 0.6.x, I cannot reproduce those issues.