We have a solution introduces a new event callback onError with three parameters: errorCode (string), errorObject (object), userReset (boolean)
errorCode is one of the following:
ACTION - Action Error (ie an issue with a Custom Consent Action) CHOICE - Choice Error (an unlikely error where an invalid choice is provided to the script) CMP_CALLBACK - CMP Callback Error (an error thrown in a __tcfapi callback) REQUEST - Request Error (a network error) UNKNOWN - Generic Error (unknown error occurred) errorObject is the error object and associated stack trace
userReset will be true if we've reset the user's cookies.
This will only happen on the following error types: REQUEST, and UNKNOWN this is new behavior - previously all errors triggered the cookie reset.