Skip to content

ignoreErrors not working #6100

@vcarel

Description

@vcarel

I'm trying to make ignoreErrors work, and I can't figure how.
I'm using express with the following setup:

import express from 'express'
import Raven from 'raven'

Raven.config('the dsn', { ignoreErrors: ['BOOM'] }).install()

const app = express()

app.use(Raven.requestHandler())

app.get('/boom', (req, res) => {
  throw new Error('BOOM')
})

app.use(Raven.errorHandler())

When I make a request to http://myserver/boom, Sentry captures the error.

I tried /BOOM/ and /.*BOOM.*/ for ignoreErrors. The error is always sent.
I'm on [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions