Issue
I'm getting unknown events with title "Object captured as exception with keys:..." with no stack trace and little information.
Applies To
- All SaaS Customers and Self-Hosted Users
- All SDKs
Resolution
These kind of events happens when a non-error object is thrown or manually sent to Sentry. For example:
const nonErrorObject = {
keys:"lost",
foo:"bar",
details:"unremarkable"
}
Sentry.captureException(nonErrorObject)
//or
throw nonErrorObject
This is an expected behaviour and the only way to prevent it is by finding where the non-error object is being thrown/raised.
You can filter these events with ignoreErrors (or other filters, please check the dedicated filtering docs for your SDK):
ignoreErrors:["Object captured as exception"]