Skip to main content

browser-tracker.emitterconfigurationbase.onrequestfailure

Home > @snowplow/browser-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;