Title: Wrong request data being sent with error. · Issue #2045 · getsentry/sentry-javascript · GitHub
Open Graph Title: Wrong request data being sent with error. · Issue #2045 · getsentry/sentry-javascript
X Title: Wrong request data being sent with error. · Issue #2045 · getsentry/sentry-javascript
Description: I am using Node v10.15.2 + Express v4.16.3 and "@sentry/node" v5.1 Hoping someone can help. Sentry is reporting Errors with incorrect data. Sentry reported an error today that can only come from 1 specific route in my API. That route is ...
Open Graph Description: I am using Node v10.15.2 + Express v4.16.3 and "@sentry/node" v5.1 Hoping someone can help. Sentry is reporting Errors with incorrect data. Sentry reported an error today that can only come from 1 ...
X Description: I am using Node v10.15.2 + Express v4.16.3 and "@sentry/node" v5.1 Hoping someone can help. Sentry is reporting Errors with incorrect data. Sentry reported an error today that can only co...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/2045
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong request data being sent with error.","articleBody":"I am using Node v10.15.2 + Express v4.16.3 and \"@sentry/node\" v5.1\r\n\r\nHoping someone can help. Sentry is reporting Errors with incorrect data.\r\n\r\nSentry reported an error today that can only come from 1 specific route in my API. That route is `/dashboard/memberships` It's a validation error from Mongo (that's besides the point though).\r\n\r\nHowever, Sentry reported the Error originating from an entirely different route `/site/settings` and includes data that is intended for the '/site/settings' route. \r\n\r\nLooking at my raw server logs, the error was logged along side a request to `/dashboard/memberships` Which confirms to me at least the error actually did come from that route; and like I said, it's a very specific error that can only originate from the `/dashboard/memberships`\r\n\r\nHere is a simplified version of my entry point:\r\n```\r\nSentry.init({ environment: \"my enviroment\", dsn: 'hi github' })\r\n\r\nconst app = express()\r\n\r\napp.use(Sentry.Handlers.requestHandler())\r\n\r\n// error actually came from route inside here\r\napp.use('/dashboard', dashboard) // my dashboard routes\r\n\r\n// but sentry thinks it came from here\r\napp.use('/site', sites) // my sites routes\r\n\r\napp.use(Sentry.Handlers.errorHandler())\r\n\r\napp.use(function(err,req,res,next) {\r\n if (err) {\r\n console.log(err)\r\n if (res.headersSent === false) {\r\n res.sendStatus(400)\r\n }\r\n }\r\n next()\r\n})\r\n```\r\n\r\nI can provide more info if needed. Thanks!\r\n","author":{"url":"https://github.com/tbell511","@type":"Person","name":"tbell511"},"datePublished":"2019-04-30T19:43:16Z","url":"https://github.com/getsentry/sentry-javascript/issues/2045"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ccc18a09-85c6-34ef-0105-f05e0533e72a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEEA:6BA1D:2964FF:397AB6:6B0453A9 |
| html-safe-nonce | 3ab06ef481d3cd94752030117bff6e96192d35a67714915e084e1fd1ed0b1098 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUVBOjZCQTFEOjI5NjRGRjozOTdBQjY6NkIwNDUzQTkiLCJ2aXNpdG9yX2lkIjoiNzYyNDgzNzE0NTgyMzU2NDcxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 877d87aa3bd23cb6ce55d8da2d3fb5ac1a1aacf8b5b751cdb5585268c44e0389 |
| hovercard-subject-tag | issue:438945554 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/2045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ef9ffb2a902f46bfeb0158fd6dcc854814995d8a369d2a4558754079577cee3/getsentry/sentry-javascript/issues/2045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ef9ffb2a902f46bfeb0158fd6dcc854814995d8a369d2a4558754079577cee3/getsentry/sentry-javascript/issues/2045 |
| og:image:alt | I am using Node v10.15.2 + Express v4.16.3 and "@sentry/node" v5.1 Hoping someone can help. Sentry is reporting Errors with incorrect data. Sentry reported an error today that can only come from 1 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tbell511 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width