Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SentryError: An event processor returned null, will not send event #3939

Closed
xpicio opened this issue Aug 31, 2021 · 31 comments
Closed

SentryError: An event processor returned null, will not send event #3939

xpicio opened this issue Aug 31, 2021 · 31 comments

Comments

@xpicio
Copy link
Contributor

xpicio commented Aug 31, 2021

Hello, in our web application based on vue 2.6.12 and @sentry/vue 6.10.0 client SDK (we tried even with 6.11.0) we facing with the following error:

Sentry Logger [Error]: SentryError: An event processor returned null, will not send event.

Debugging a little bit the application i extracted the sentry event object that cause the error:

{
    "exception": {
        "values": [
            {
                "type": "TypeError",
                "value": "Cannot read property 'unitName' of undefined",
                "stacktrace": {
                    "frames": [
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createElm",
                            "in_app": true,
                            "lineno": 15783
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createComponent",
                            "in_app": true,
                            "lineno": 15836
                        },
                        {
                            "colno": 13,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "init",
                            "in_app": true,
                            "lineno": 12977
                        },
                        {
                            "colno": 16,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 21801
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 18904
                        },
                        {
                            "colno": 3,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "mountComponent",
                            "in_app": true,
                            "lineno": 13931
                        },
                        {
                            "colno": 12,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "new Watcher",
                            "in_app": true,
                            "lineno": 14326
                        },
                        {
                            "colno": 25,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "Watcher.get",
                            "in_app": true,
                            "lineno": 14337
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.updateComponent",
                            "in_app": true,
                            "lineno": 13924
                        },
                        {
                            "colno": 19,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.Vue._update",
                            "in_app": true,
                            "lineno": 13803
                        },
                        {
                            "colno": 7,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.patch [as __patch__]",
                            "in_app": true,
                            "lineno": 16331
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createElm",
                            "in_app": true,
                            "lineno": 15783
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createComponent",
                            "in_app": true,
                            "lineno": 15836
                        },
                        {
                            "colno": 13,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "init",
                            "in_app": true,
                            "lineno": 12977
                        },
                        {
                            "colno": 16,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 21801
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 18904
                        },
                        {
                            "colno": 3,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "mountComponent",
                            "in_app": true,
                            "lineno": 13931
                        },
                        {
                            "colno": 12,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "new Watcher",
                            "in_app": true,
                            "lineno": 14326
                        },
                        {
                            "colno": 25,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "Watcher.get",
                            "in_app": true,
                            "lineno": 14337
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.updateComponent",
                            "in_app": true,
                            "lineno": 13924
                        },
                        {
                            "colno": 19,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.Vue._update",
                            "in_app": true,
                            "lineno": 13803
                        },
                        {
                            "colno": 7,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.patch [as __patch__]",
                            "in_app": true,
                            "lineno": 16331
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createElm",
                            "in_app": true,
                            "lineno": 15812
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createChildren",
                            "in_app": true,
                            "lineno": 15911
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createElm",
                            "in_app": true,
                            "lineno": 15783
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createComponent",
                            "in_app": true,
                            "lineno": 15836
                        },
                        {
                            "colno": 13,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "init",
                            "in_app": true,
                            "lineno": 12977
                        },
                        {
                            "colno": 16,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 21801
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 18904
                        },
                        {
                            "colno": 3,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "mountComponent",
                            "in_app": true,
                            "lineno": 13931
                        },
                        {
                            "colno": 12,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "new Watcher",
                            "in_app": true,
                            "lineno": 14326
                        },
                        {
                            "colno": 25,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "Watcher.get",
                            "in_app": true,
                            "lineno": 14337
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.updateComponent",
                            "in_app": true,
                            "lineno": 13924
                        },
                        {
                            "colno": 19,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.Vue._update",
                            "in_app": true,
                            "lineno": 13803
                        },
                        {
                            "colno": 7,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.patch [as __patch__]",
                            "in_app": true,
                            "lineno": 16331
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createElm",
                            "in_app": true,
                            "lineno": 15783
                        },
                        {
                            "colno": 9,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "createComponent",
                            "in_app": true,
                            "lineno": 15836
                        },
                        {
                            "colno": 13,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "init",
                            "in_app": true,
                            "lineno": 12977
                        },
                        {
                            "colno": 16,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 21801
                        },
                        {
                            "colno": 10,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.webpackJsonp.7+uW.Vue.$mount",
                            "in_app": true,
                            "lineno": 18904
                        },
                        {
                            "colno": 3,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "mountComponent",
                            "in_app": true,
                            "lineno": 13931
                        },
                        {
                            "colno": 12,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "new Watcher",
                            "in_app": true,
                            "lineno": 14326
                        },
                        {
                            "colno": 25,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "Watcher.get",
                            "in_app": true,
                            "lineno": 14337
                        },
                        {
                            "colno": 21,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.updateComponent",
                            "in_app": true,
                            "lineno": 13924
                        },
                        {
                            "colno": 22,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.Vue._render",
                            "in_app": true,
                            "lineno": 13406
                        },
                        {
                            "colno": 21,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.render",
                            "in_app": true,
                            "lineno": 75431
                        },
                        {
                            "colno": 47,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "VueComponent.content",
                            "in_app": true,
                            "lineno": 75462
                        },
                        {
                            "colno": 37,
                            "filename": "https://uwa.demo.com/static/js/vendor.d72430d2f3abd7aae0a9.js",
                            "function": "Object.normalized [as Life]",
                            "in_app": true,
                            "lineno": 12449
                        },
                        {
                            "colno": 2114,
                            "filename": "https://uwa.demo.com/static/js/63.3a66cb6d6dcc5e556a5f.js",
                            "function": "fn",
                            "in_app": true,
                            "lineno": 890
                        },
                        {
                            "colno": 19,
                            "filename": "https://uwa.demo.com/static/js/63.3a66cb6d6dcc5e556a5f.js",
                            "function": "VueComponent.getMeasurementUnit",
                            "in_app": true,
                            "lineno": 643
                        }
                    ]
                },
                "mechanism": {
                    "handled": true,
                    "type": "generic"
                }
            }
        ]
    },
    "level": "error",
    "event_id": "f8d95a0b6a434a00b8035c8aab03d5ad",
    "platform": "javascript",
    "timestamp": 1630337380.814,
    "environment": "prod",
    "release": "v2.11.3",
    "sdk": {
        "integrations": [
            "InboundFilters",
            "FunctionToString",
            "TryCatch",
            "Breadcrumbs",
            "GlobalHandlers",
            "LinkedErrors",
            "Dedupe",
            "UserAgent"
        ],
        "name": "sentry.javascript.vue",
        "version": "6.10.0",
        "packages": [
            {
                "name": "npm:@sentry/vue",
                "version": "6.10.0"
            }
        ]
    },
    "user": {
        "id": "ckmloszb91an50n9pjjb0xejx",
        "email": "a@user.com"
    },
    "contexts": {
        "vue": {
            "componentName": "<RLTableCell>",
            "lifecycleHook": "render",
            "trace": "\n\nfound in\n\n---> <RLTableCell>\n       <VtTableCell>\n         <RLTableRow>\n           <VtTableRow>\n             <RLTableBody>\n               <VtTableBody>\n                 <RLTable>\n                   <VtTable>\n                     <RLClientTable>\n                       <VtClientTable>\n                         <CardPanel>\n                           <ToolingGrid>\n                             <Anonymous>\n                               <DefaultLayout>\n                                 <App>\n                                   <Root>",
            "propsData": {
                "column": "Life"
            }
        }
    },
    "breadcrumbs": [
        {
            "timestamp": 1630337324.111,
            "category": "navigation",
            "data": {
                "from": "/machine/ckqm8767i00nl0hd0sve14xos/tooling",
                "to": "/machine/ckqm8767i00nl0hd0sve14xos/tooling"
            }
        },
        {
            "timestamp": 1630337324.382,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/F9925/users/me",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.555,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/users/me/notifications?limit=10&skip=0",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.562,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/organizations/F9925",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.565,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/users/me/notifications/count",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.639,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/F9925/machines/ckqm8767i00nl0hd0sve14xos",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.721,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/v2/machines/ckqm8767i00nl0hd0sve14xos/tools?limit=1",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.727,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/F9925/machinegroups/ckmlosz5o1an30n9pqfq8eqh0/machines?skip=0&limit=1000",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.796,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/F9925/machines/ckqm8767i00nl0hd0sve14xos",
                "status_code": 200
            },
            "type": "http"
        },
        {
            "timestamp": 1630337324.817,
            "category": "xhr",
            "data": {
                "method": "GET",
                "url": "https://api.demo.com/api/v2/machines/ckqm8767i00nl0hd0sve14xos/tools?skip=1&limit=9",
                "status_code": 200
            },
            "type": "http"
        }
    ],
    "request": {
        "url": "https://uwa.demo.com/machine/ckqm8767i00nl0hd0sve14xos/tooling",
        "headers": {
            "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
        }
    }
}

Hope this help to understand the problem. If you need more detail let me know.

@AbhiPrasad
Copy link
Member

Looking at similar issues: #3047, this maybe because of the Dedupe integration.

Are you receiving these errors in Sentry, or just in the debug console? If it's just in the debug console, this is expected behaviour, Dedupe is preventing duplicate errors from being sent.

@ForbesLindesay
Copy link
Contributor

ForbesLindesay commented Sep 22, 2021

I'm seeing a similar issue in a React app. It is being reported to sentry, not just logged to the console. I don't have anything setting integrations so I think it should just have the default set of integrations:

Sentry.init({
  dsn: SENTRY_DSN,
  environment: hostname,
  allowUrls: [/.+\.example\.com/],
  ignoreErrors: [
    /NetworkError when attempting to fetch resource/,
    /The operation is not supported/,
    /The request is not allowed by the user agent or the platform in the current context/,
  ],
  beforeSend(event) {
    // exclude all events that have no stack trace
    if (event.stacktrace?.frames?.length) {
      return event
    } else {
      return null
    }
  },
})
Sentry.addGlobalEventProcessor(event => {
  const fullstorySessionUrl = window.FS?.getCurrentSessionURL?.(true)
  event.contexts = {
    ...(event.contexts || {}),
    fullstory: fullstorySessionUrl,
  }
  event.extra = {
    ...(event.extra || {}),
    fullstorySessionUrl,
  }
  return event
})

@AbhiPrasad
Copy link
Member

Could you provide your Sentry.init config as well as a link to the event @ForbesLindesay?

@ForbesLindesay
Copy link
Contributor

@AbhiPrasad was just updating my comment to add the init as you commented. Here's a link to the error in sentry:

https://sentry.io/organizations/mavenoid/issues/2509300625/

@kamilogorek
Copy link
Contributor

Would you mind trying to update the SDK to the latest version? In 6.12.0 we added logging for drops due to Dedupe integration. I wonder if that might be the culprit.
Also if possible, setting up Source Maps would definitely be a tremendous help.

@darrylyoung
Copy link

I'm not sure if this is the exact issue you're having or if this error and warning are a result of something different but I've been seeing the following all morning and had no idea why as it was fine yesterday.

WARN  Sentry Logger [Warn]: Event dropped due to being a duplicate of previously captured event.
ERROR  Sentry Logger [Error]: SentryError: An event processor returned null, will not send event.

I hadn't changed anything since I was last working so I spent quite some time going through all the typical things to find the problem. Eventually I switched VPN (NordVPN) off, which I'd been using today, and the errors were gone. I tried on and off multiple times, rebuilding the app each time, and every time VPN was on, I had the issues. The rest of the time it was fine.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@endruuu
Copy link

endruuu commented Mar 2, 2022

Thanks for the great library!

Based on my observation, this thing will show up when you capture an exception using Sentry.captureException().
The exception can come from anything, so our problem (the root cause) will be diverse.
You need to dig through the node_modules to capture the Sentry event object.
(I use React Native. I also don't know any easier method other than digging through the node_modules).

Unfortunately, Sentry just show the console.error of (which is kind of uninformative):

Sentry Logger [Error]: SentryError: An event processor returned null, will not send event.

without telling what kind of exception it is or any hint about that.

Hope this can be improved later.

CMIIW

@lobsterkatie
Copy link
Member

Hi, @endruuu.

I'll bring this up with the team so we can discuss what we might be able to improve here. In the meantime, I'll reopen the issue so we don't lose track of it.

@jlabresh1
Copy link

jlabresh1 commented Mar 3, 2022

@lobsterkatie Are there any updates on this? We upgraded to 6.18.1 and turned on logErrors and debug and started seeing this error in the console. We can't seem to get any errors to move to the dashboard with or without these flags turned on.

@lobsterkatie
Copy link
Member

We are likely to improve the logging here at some point, but I get that unfortunately that's not really your problem, it would just help you solve your problem.

If you can repro this locally, I'd suggest starting by turning off all integrations (which are what add the event processors which drop events), and then adding them back in one by one until you see things being dropped. (Docs here.) Then once you know what's dropping the event, we can debug why it's getting dropped.

@govind-v-natex
Copy link

Sentry Logger [Error]: SentryError: An event processor returned null, will not send event.
Facing the same issue in react native application, it's working fine a week ago, but now encountered with this error.

@lobsterkatie
Copy link
Member

@govind-v-natex I'd offer the same suggestion - try turning off integrations and adding them back in. The ones to try first would be Dedupe and InboundFilters. Also, do you have a beforeSend defined? It's another thing which can lead to that message. Are you seeing any logs before that which might give any clues?

I'm happy to help debug, but it's tough without more information or a repro.

@alexrdz
Copy link

alexrdz commented Mar 14, 2022

@lobsterkatie Hopefully this helps... we were also experiencing the same issue. After removing integrations and adding them back in, we found that InboundFilters was causing our error of not logging data. It was also preventing our beforeSend from firing. Filtering that one out we can now see logs in Sentry.

@lobsterkatie
Copy link
Member

lobsterkatie commented Mar 17, 2022

@alexrdz - Interesting. And you're not seeing the actual reason logged? The function which does the filtering should tell you why it's dropping something:

private _shouldDropEvent(event: Event, options: Partial<InboundFiltersOptions>): boolean {
if (this._isSentryError(event, options)) {
isDebugBuild() &&
logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${getEventDescription(event)}`);
return true;
}
if (this._isIgnoredError(event, options)) {
isDebugBuild() &&
logger.warn(
`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${getEventDescription(event)}`,
);
return true;
}
if (this._isDeniedUrl(event, options)) {
isDebugBuild() &&
logger.warn(
`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${getEventDescription(
event,
)}.\nUrl: ${this._getEventFilterUrl(event)}`,
);
return true;
}
if (!this._isAllowedUrl(event, options)) {
isDebugBuild() &&
logger.warn(
`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${getEventDescription(
event,
)}.\nUrl: ${this._getEventFilterUrl(event)}`,
);
return true;
}
return false;
}

@lobsterkatie
Copy link
Member

Oh. I might get it. @alexrdz, how do you load sentry? CDN? npm package?

@hossein
Copy link

hossein commented Mar 18, 2022

Same issue here on browser 6.18.2. Loaded from npm, compiled via Webpack as a script we inject into our page. We throw an error like throw new Error('test') and it won't get through. The message 'An event processor returned null...' and 'Uncaught Error: test' are printed in console; but the reasons mentioned in the above comment are not printed.

Interesting: If we disable the InboundFilters integration, we receive the error on the server, however the title of the event is <unknown> and the subtitle is Script error. (with the dot). Neither the UI nor the error JSON do NOT contain the string we used to construct the JS Error object, in this case 'test'.

Sentry.init({
  dsn: '...',
  environment,
  onerror: true,
  debug: true,
});

@alexrdz
Copy link

alexrdz commented Mar 18, 2022

@lobsterkatie We are loading it via npm package in a Vue app. The only message or log we were receiving was Sentry Logger [Error]: SentryError: An event processor returned null, will not send event. We weren't seeing any reason logged as to why it was dropping anything.

@gustavoggs
Copy link

I am also facing this error in a react native app.

The only other message that looks realted is:
TypeError: containerRef.getNode is not a function. (In 'containerRef.getNode()', 'containerRef.getNode' is undefined)

@lobsterkatie
Copy link
Member

@hossein - Ah, okay. If it's a script error, that explains why it's getting dropped.

// "Script error." is hard coded into browsers for errors that it can't read.
// this is the result of a script being pulled in from an external domain and CORS.
const DEFAULT_IGNORE_ERRORS = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];

Could there be a CORS issue here? @alexrdz - Any chance this might apply to you as well?

As for how you all are loading the package, I was really hoping you were going to say "from the CDN," because for a while there we were logging inconsistently in the bundles. But if you're using npm, it's a moot point, unfortunately.

If you eliminate CORS as the issue, at that point I think in order to get any farther I'd need a minimal repro to poke at. Is that something either of you might be able to provide?

@johnnywang
Copy link

johnnywang commented Apr 28, 2022

Chiming in on this thread, since we just started seeing this as well, which seems to go away if you disable the Dedupe integration. That said, we're only seeing this in our terminal/console and not on Sentry itself, which, according to:

Are you receiving these errors in Sentry, or just in the debug console? If it's just in the debug console, this is expected behaviour, Dedupe is preventing duplicate errors from being sent.

is expected behavior? Throwing it as an explicit error seems like the wrong level though, because if it is indeed expected shouldn't it be a warning or info level?

Edit: This does also seem to go away if you set debug: false in init

@erikjalevik
Copy link

erikjalevik commented May 27, 2022

I'm seeing a slightly different version of this error in an Electron app using the @sentry/electron v3.0.7 npm package.

I'm doing a vanilla init with just:

Sentry.init({
  dsn: "[my-dsn]",
  debug: true
})

Since I already have a window.onerror handler registered, I added a Sentry.captureException(error) in there, otherwise Sentry would not pick up the error.

Thereafter I am seeing the following in the console:

Sentry Logger [Log]: Adding outcome: error:event_processor
Sentry Logger [Error]: SentryError: An event processor returned null, will not send event.

However, the error still seems to show up in the Sentry web app, so not a showstopper.

Through disabling default integrations one-by-one, I found that the error message was caused by the integration "EventToMain". The following init makes the error go away:

Sentry.init({
  dsn: "[my-dsn]",
  debug: true,
  integrations: (integrations) => (
    integrations.filter(int => int.name !== "EventToMain")
  )
})

Hope that helps.

@lobsterkatie
Copy link
Member

Throwing it as an explicit error seems like the wrong level though, because if it is indeed expected shouldn't it be a warning or info level?

@johnnywang - That's a fair point, and something I've actually noticed and wanted to fix as well. I'll shove this into my mental backlog (it's already on our team backlog), and take a look at it if I get a chance. In the meantime, though, PRs on that score quite welcome!

@lobsterkatie
Copy link
Member

@erikjalevik - Thanks for that. Would you mind please just copying and pasting your comment as a new issue in https://github.com/getsentry/sentry-electron, and reference this issue? That way it will be seen by the electron team.

@HazAT
Copy link
Member

HazAT commented Jan 26, 2023

State - closing

@HazAT HazAT closed this as completed Jan 26, 2023
@HazAT
Copy link
Member

HazAT commented Jan 26, 2023

State - closing

@HazAT HazAT closed this as completed Jan 26, 2023
@chirva-ivan
Copy link

I'm still running into this problem and the workaround doesn't help.
@HazAT Can you help what might be the cause? Or maybe you have some fixes in the new version?

@HazAT HazAT reopened this Jan 27, 2023
@lforst
Copy link
Member

lforst commented Jan 27, 2023

@chirva-ivan the newest version should print information on which event processor dropped the event if you turn on debug: true in Sentry.init.

@github-actions
Copy link
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2023
@Shawnxkwang
Copy link

Hi I'm still seeing this on newest version

@AbhiPrasad
Copy link
Member

@Shawnxkwang could you create a new issue and give your SDK version + a reproduction we can take a look at?

@getsentry getsentry locked as resolved and limited conversation to collaborators Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests