Description
EDIT:
This was due to reject()
for the onreject action where I wanted to swallow the exception. It was fixed by changing this to () => {}
.
I still consider this as an abnormal behavior of sentry lib as it should not fail on null value on exception (IMO)
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
https://sentry.io/share/issue/5317881fb9fb443c91df1fefa1b9484a/
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
Version:
@sentry/browser 5.30.0 (saw it also on 5.28.0)
vue 2.6.12
0.0.0
Description
On initial load the app breaks and I see the following error in the console:
instrument.js:109 [Vue warn]: Error in config.errorHandler: "TypeError: Cannot read property 'toString' of undefined"
Digging a bit, I get to the following line
_this._options.Vue.util.warn("Error in " + info + ": "" + error.toString() + """, vm);
This belong to this function:
/** Inject Sentry's handler into owns Vue's error handler */
Vue.prototype._attachErrorHandler = function (getCurrentHub) {
and also to this line:
warn(("Error in " + info + ": "" + (err.toString()) + """), vm);
under the function
function logError (err, vm, info) {
and also in this part:
// this fails for some browsers. :(
if (originalConsoleLevel) {
Function.prototype.apply.call(originalConsoleLevel, global.console, args);
}
under this function
function instrumentConsole() {