MCPcopy Index your code
hub / github.com/nodejs/node / onClientRequestError

Function onClientRequestError

lib/internal/inspector/network_http.js:101–111  ·  view source on GitHub ↗

* When a client request errors, emit Network.loadingFailed event. * https://chromedevtools.github.io/devtools-protocol/1-3/Network/#event-loadingFailed * @param {{ request: import('http').ClientRequest, error: any }} event

({ request, error })

Source from the content-addressed store, hash-verified

99 * @param {{ request: import('http').ClientRequest, error: any }} event
100 */
101function onClientRequestError({ request, error }) {
102 if (typeof request[kInspectorRequestId] !== 'string') {
103 return;
104 }
105 Network.loadingFailed({
106 requestId: request[kInspectorRequestId],
107 timestamp: getMonotonicTime(),
108 type: kResourceType.Other,
109 errorText: error.message,
110 });
111}
112
113/**
114 * When response headers are received, emit Network.responseReceived event.

Callers

nothing calls this directly

Calls 1

getMonotonicTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…