Skip to content
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

error event wrapper should always present #601

Closed
wants to merge 1 commit into from

Conversation

13W
Copy link
Contributor

@13W 13W commented May 8, 2014

No description provided.

Signed-off-by: Vladimir Bulyga <xx@ccxx.cc>
@@ -158,6 +158,9 @@ function rawRequest(opts, cb) {

req.removeAllListeners('error');
req.removeAllListeners('socket');

// error event wrapper should always present, if absent, native http module breaks app
req.on('error', function () {});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about providing some valuable error msg in the callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error message is present in res variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

today i got HPE_INVALID_CONSTANT(nodejs/node-v0.x-archive#7019) error which broke app... when wrapper added - i receive real error message from response: 503 service unavailable, else i got braked app with error: Parse error

@gergelyke gergelyke added the bug label May 12, 2014
@mcavage mcavage closed this May 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants