New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging response object from request() results in process hang #613
Comments
Probably has to do with serialization of some |
I get the same behaviour with the current version of Winston and got my app in production to hang indefinitely :( I will shoot a fix very soon |
When logging the response object, what actually happens is the following:
I ended up:
return winston.loggers.get(moduleName, {
console: {
colorize: true,
depth: 5,
label: moduleName,
handleExceptions: true,
humanReadableUnhandledException: true,
prettyPrint: true,
},
});
Hope this helps :) |
I was using unirest (which uses request) and had the same issue as @robertdimarco when attempting to log via EDIT: |
Hi all, I'm attempting to use node-fetch with winston and I'm running into this issue. Is there any update on a resolution? |
Using Node v0.10.38 w/ Winston v1.0.0, the following code will cause the process to spike to 100% CPU and hang:
Expected Output:
Actual Output:
Notes:
Interestingly, if you replace the above endpoint with an non-SSL, i.e.
http://
URI, the object is logged fine. Also note that the above script works successfully in Node v0.12 and io.js.The text was updated successfully, but these errors were encountered: