MCPcopy Create free account
hub / github.com/nodejs/node / onResponseError

Method onResponseError

deps/undici/src/lib/core/request.js:411–426  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

409 }
410
411 onResponseError (error) {
412 this.onFinally()
413
414 if (channels.error.hasSubscribers) {
415 channels.error.publish({ request: this, error })
416 }
417
418 if (this.aborted) {
419 return
420 }
421 this.aborted = true
422
423 const controller = this[kController]
424
425 return this[kHandler].onResponseError?.(controller, error)
426 }
427
428 onFinally () {
429 if (this.errorHandler) {

Callers 1

onResponseEndMethod · 0.95

Calls 3

onFinallyMethod · 0.95
onResponseErrorMethod · 0.65
publishMethod · 0.45

Tested by

no test coverage detected