-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Unclear stack trace where every item in the trace is related to raven-js #1585
Copy link
Copy link
Closed
Description
Hello,
Sorry if this is not the correct repo. I could not find a raven-js one and am assuming this is the correct one.
I have been getting events where the entire stack trace is raven related and it is very unclear what the issue is. Is this a bug with raven or is it an issue on my end? I am including one of the event's raw JSON below with some sensitive information replaced with .
Any help would be greatly appreciated!
{
"id": "582cd1ed61c04b538e01a086a025b054",
"project": 1240221,
"release": null,
"dist": null,
"platform": "javascript",
"culprit": "captureMessage(raven-js/src/raven)",
"message": "undefined",
"datetime": "2018-09-25T13:03:16.000000Z",
"time_spent": null,
"tags": [
[
"level",
"error"
],
[
"url",
"<removed>"
],
[
"environment",
"production"
],
[
"sentry:user",
"<removed>"
],
[
"logger",
"javascript"
],
[
"browser.name",
"Chrome"
],
[
"os",
"Mac OS X 10.13.6"
],
[
"os.name",
"Mac OS X"
],
[
"browser",
"Chrome 68.0.3440"
]
],
"breadcrumbs": {
"values": [
{
"category": "fetch",
"timestamp": 1537880596.526,
"type": "http",
"data": {
"url": "<removed>",
"status_code": "200",
"method": "GET"
}
}
]
},
"contexts": {
"os": {
"version": "10.13.6",
"name": "Mac OS X"
},
"browser": {
"version": "68.0.3440",
"name": "Chrome"
}
},
"errors": [
{
"type": "invalid_attribute",
"name": "mechanism"
}
],
"extra": {
"session:duration": 616
},
"fingerprint": [
"undefined"
],
"key_id": 612911,
"logentry": {
"message": "undefined"
},
"metadata": {
"title": "undefined"
},
"received": 1537880596,
"request": {
"url": "<removed>",
"headers": [
[
"Referer",
"<removed>"
],
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
]
]
},
"sdk": {
"version": "3.26.3",
"name": "raven-js"
},
"stacktrace": {
"frames": [
{
"function": "G._promiseRejectionHandler",
"abs_path": "<removed>/node_modules/raven-js/src/raven.js",
"pre_context": [
" * reason: the value with which the Promise was rejected",
" * @return void",
" */",
" _promiseRejectionHandler: function(event) {",
" this._logDebug('debug', 'Raven caught unhandled promise rejection:', event);"
],
"post_context": [
" mechanism: {",
" type: 'onunhandledrejection',",
" handled: false",
" }",
" });"
],
"filename": "../node_modules/raven-js/src/raven.js",
"module": "raven-js/src/raven",
"colno": 1,
"in_app": false,
"data": {
"sourcemap": "<removed>/static/js/main.33e645b8.js.map"
},
"context_line": " this.captureException(event.reason, {",
"lineno": 431
},
{
"function": "captureException",
"abs_path": "<removed>/static/node_modules/raven-js/src/raven.js",
"pre_context": [
" // it's not a DOMError/DOMException",
" // it's not a plain Object",
" // it's not a valid ErrorEvent (one with an error property)",
" // it's not an Error",
" // So bail out and capture it as a simple message:"
],
"post_context": [
" ex,",
" objectMerge(options, {",
" stacktrace: true, // if we fall back to captureMessage, default to attempting a new trace",
" trimHeadFrames: options.trimHeadFrames + 1",
" })"
],
"filename": "../node_modules/raven-js/src/raven.js",
"module": "raven-js/src/raven",
"colno": 1,
"in_app": false,
"data": {
"sourcemap": "<removed>/static/js/main.33e645b8.js.map"
},
"context_line": " return this.captureMessage(",
"lineno": 508
},
{
"function": "captureMessage",
"abs_path": "<removed>/static/node_modules/raven-js/src/raven.js",
"pre_context": [
" // Generate a \"synthetic\" stack trace from this point.",
" // NOTE: If you are a Sentry user, and you are seeing this stack frame, it is NOT indicative",
" // of a bug with Raven.js. Sentry generates synthetic traces either by configuration,",
" // or if it catches a thrown object without a \"stack\" property.",
" try {"
],
"post_context": [
" } catch (ex1) {",
" ex = ex1;",
" }",
"",
" // null exception name so `Error` isn't prefixed to msg"
],
"filename": "../node_modules/raven-js/src/raven.js",
"module": "raven-js/src/raven",
"colno": 1,
"in_app": false,
"data": {
"sourcemap": "<removed>/static/js/main.33e645b8.js.map"
},
"context_line": " throw new Error(msg);",
"lineno": 584
}
]
},
"type": "default",
"user": {
"ip_address": "<removed>",
"id": "<removed>",
"email": "<removed>"
},
"version": "7"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Fields
Give feedbackNo fields configured for issues without a type.