You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 25, 2018. It is now read-only.
If any error is encountered during the request (be that with DNS resolution, TCP level errors, or actual HTTP parse errors) an 'error' event is emitted on the returned request object.
And the example code for http.request and http.get both show the usage of the error event. But as http.request() returns an instance of the http.ClientRequest class, the 'error' event should be listed with the other events as well.
Activity
fhemberger commentedon Jul 23, 2015
https://nodejs.org/api/http.html#http_http_request_options_callback
And the example code for
http.requestandhttp.getboth show the usage of the error event. But ashttp.request()returns an instance of thehttp.ClientRequestclass, the 'error' event should be listed with the other events as well.