-
Notifications
You must be signed in to change notification settings - Fork 7.3k
nodejs crashes with "Unknown system errno 31" #4246
Comments
For as much as it matters, this works fine here (although I didn't try nodemon). "system errno 31" means:
|
have just run in on a different system (English version of Win7 x64), now it crashes with at errnoException (net.js:769:11) |
(edited) now Russian version of Windows 7 x64 //console.log("test"); this one crashes console.log("test"); this one works NOTE that file is NOT saved as unicode, it's ansi coded text file (so looks like this) |
Can't reproduce.
|
You should be aware that node can only load utf8 encoded javascript files (and files that contain only ascii characters of course). |
chcp 65001
|
The problem is: it's not the string literal i'm trying to manipulate, this data is loaded from database (using mysql module) and when we try to do something with the data, it crashes... |
Ok, I think you're seeing two different issues.
|
Demo:
Change your console to use an unicode font (not a raster font) and it'll work. |
Thanks, that seems to be it! |
errno mapping added in joyent/libuv@f372fd4b13ce |
Fix: nodejs#4246 PR-URL: nodejs/node#4315 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]>
Have a small application to reproduce the issue (note that it's important to use umlaut characters in console.log, but this error apparently is NOT limited to console.log, but also occurs when other actions are performed against some values)
[CODE]
app.js:
var express = require('express');
GLOBAL.app = module.exports = express();
var server = require('http').createServer(app);
server.listen(3000, '127.0.0.1');
//App routes.
app.get('/', function (req, res) {
console.log("üöä");
});
[CODE2 - simplified]
app.js
console.log("üöä"); // Yes, it's a one-line app.js file that only does console.log call with some german characters in it
Now just navigate to http://127.0.0.1:3000 (code 1) or run app.js (CODE 2) and see
debugger listening on port 5858
Error: write Unknown system errno 31
at errnoException (net.js:769:11)
at Object.afterWrite (net.js:593:19)
debugger listening on port 5858
PS i used nodemon in debug mode, OS is Windows 7 x64 German
The text was updated successfully, but these errors were encountered: