Skip to main content

node-tracker.emitterconfigurationbase.onrequestfailure

Home > @snowplow/node-tracker > EmitterConfigurationBase > onRequestFailure

EmitterConfigurationBase.onRequestFailure property

A callback function to be executed whenever a request fails to be sent to the collector. This is the inverse of the onRequestSuccess callback, so any non 2xx status code will trigger this callback.

Signature:
onRequestFailure?: (data: RequestFailure, response?: Response) => void;