-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Errors have no stack and apply() is used the wrong way somewhere in ServerResponse #1604
Comments
Hey – it's probably best to take this sort of question to the Node mailing list or StackOverflow. Without a reduced test case (that is, one that minimally reproduces the problem without any other middleware or external packages), it's hard to say whether this is a bug in io.js or not. I'm closing this issue for now – my advice would be to make sure that nothing in your project (or its dependencies) is stomping on the |
Ah, I found the cause. It was this "bad" package Removed it from my app. But now, I wonder, how can I obtain long stack traces during development under io.js? @chrisdickinson any clues? |
@binarykitchen Have you tried the |
@targos well, I doubt raising the stack trace limit will copycat longjohn's behaviour because longjohn also covers async calls |
You might try https://github.com/groundwater/node-stackup – I've heard that it's fairly reliable. |
cool, thx |
I have a very weird iojs v1.8.1 case here and wasted hours to backtrack the cause. Maybe someone can help me here?
In the middleware somewhere an error is thrown and when I do a
console.trace(err)
, I see this output:console.error(err)
outputs this:But nowhere in my code I am doing
apply()
wrong.But that's not the problem. The problem is that the stack trace is not working.
When I hack deeper into the native Error class I find this:
Maybe it's coming from the ServerResponse? That would be the second problem here.
The text was updated successfully, but these errors were encountered: