Closed hansottowirtz closed 1 year ago
Thanks! Yes, uncaught errors and timeouts handling in our analytics stack is pretty important for us. We're using Cloudflare Workers and we'll do something like .on('error', (err) => bugsnag.capture(err))
.
Linting now also fixed :)
Also, I'm not sure if this should be a major or minor update, but you could consider the new errors a breaking change.
Problem
shutdownAsync
throws when the associated flush throws, but the flush interval ignores errorsretriable
delays even if everything succeededChanges
validateStatus: () => true
to Axios. This makes sure Axios doesn't throw any HTTP errors..on('error', (err) => void)
to the API.on('error', ...)
from now on.retriable
by only delaying when multiple tries are neededRelease info Sub-libraries affected
Bump level
Libraries affected
Changelog notes
.on('error', (err) => void)
shutdownAsync
now ignores fetch errors. They should be handled with.on('error', ...)
from now on.