Title: ReferenceError: name is not defined · Issue #5401 · getsentry/sentry-javascript · GitHub
Open Graph Title: ReferenceError: name is not defined · Issue #5401 · getsentry/sentry-javascript
X Title: ReferenceError: name is not defined · Issue #5401 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/5401
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ReferenceError: name is not defined","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which package are you using?\n\n@sentry/remix\n\n### SDK Version\n\n7.6.0\n\n### Framework Version\n\n7.6.0\n\n### Link to Sentry event\n\nhttps://sentry.io/organizations/syncwith/issues/3415220654/?project=5880203&query=is%3Aunresolved\n\n### Steps to Reproduce\n\nI am trying out sentry-remix for the first time, and now when my app encounters a 404 it seems like our 404 page doesn't get used, and I get an unexpected exception tracked to sentry\r\n\r\nThe error seems to be in:\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/master/packages/remix/src/utils/instrumentServer.ts\r\n\r\n\u003cimg width=\"1201\" alt=\"Screen Shot 2022-07-10 at 11 43 03 AM\" src=\"https://user-images.githubusercontent.com/148930/178157877-e2959bdb-77be-4eb8-a693-487f303dfbcb.png\">\r\n\r\n\u003cimg width=\"400\" alt=\"Screen Shot 2022-07-10 at 11 43 32 AM\" src=\"https://user-images.githubusercontent.com/148930/178157897-08528880-16c3-4a1a-a127-ac1fb5bbfa81.png\">\r\n\r\nMy app in root looks like:\r\n\r\n```\r\nfunction App() {\r\n const data = useLoaderData\u003cRootLoaderData>();\r\n return (\r\n \u003cDocument data={data}>\r\n \u003cOutlet />\r\n \u003cfooter>\u003c/footer>\r\n \u003c/Document>\r\n );\r\n}\r\n\r\nexport default withSentry(App);\r\n```\r\n\r\n\n\n### Expected Result\n\nI expected our normal 404 page to show, I think through the CatchBoundary\n\n### Actual Result\n\n\u003cimg width=\"1201\" alt=\"Screen Shot 2022-07-10 at 11 43 03 AM\" src=\"https://user-images.githubusercontent.com/148930/178157948-3ee14164-70f5-4c12-94d4-89f4bf67e27e.png\">\r\n\u003cimg width=\"400\" alt=\"Screen Shot 2022-07-10 at 11 43 32 AM\" src=\"https://user-images.githubusercontent.com/148930/178157949-4114e7b9-adfe-43bd-9e51-871016e94a45.png\">\r\n\r\nError: name is not defined\r\n File \"/Users/alex/dev/micro/webapp/node_modules/@sentry/remix/cjs/utils/instrumentServer.js\", line 65, col 40, in \u003canonymous>\r\n captureRemixServerException(err, name);\r\n File \"/Users/alex/dev/micro/webapp/node_modules/@remix-run/server-runtime/server.js\", line 393, col 18, in handleDocumentRequest\r\n return await handleDocumentRequest(request.clone(), responseStatusCode, responseHeaders, entryContext);\r\n File \"/Users/alex/dev/micro/webapp/node_modules/@remix-run/server-runtime/server.js\", line 49, col 18, in requestHandler\r\n response = await handleDocumentRequest({\r\n File \"/Users/alex/dev/micro/webapp/node_modules/@sentry/remix/cjs/utils/instrumentServer.js\", line 134, col 16, in \u003canonymous>\r\n var res = (await origRequestHandler.call(this, request, loadContext)) ;\r\n File \"/Users/alex/dev/micro/webapp/node_modules/@remix-run/express/server.js\", line 41, col 22, in \u003canonymous>\r\n let response = await handleRequest(request, loadContext);","author":{"url":"https://github.com/alexblack","@type":"Person","name":"alexblack"},"datePublished":"2022-07-10T18:45:47Z","url":"https://github.com/getsentry/sentry-javascript/issues/5401"}
| 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:fda81322-f647-9c3b-b738-a94e29d8e360 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A6E:753CB:6092F3:822B5D:6B04A208 |
| html-safe-nonce | 05ff64cb780d0d1f907218bfba1893aa60c6a9f82302efc157d991b26c2d62e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTZFOjc1M0NCOjYwOTJGMzo4MjJCNUQ6NkIwNEEyMDgiLCJ2aXNpdG9yX2lkIjoiNjQ4NDI2NTQ2MzE5NDEwMDIzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5106155561e22f9616f955f57000a5791199b30e1c1febfcdb2d132d415b655c |
| hovercard-subject-tag | issue:1299990005 |
| 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/5401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8af4ed19b48b1f51f02abd8676f7584fb38497ee4816168f997558a357c1318/getsentry/sentry-javascript/issues/5401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8af4ed19b48b1f51f02abd8676f7584fb38497ee4816168f997558a357c1318/getsentry/sentry-javascript/issues/5401 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexblack |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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