Title: Handle the case where users define a different port/protocol · Issue #18135 · getsentry/sentry-javascript · GitHub
Open Graph Title: Handle the case where users define a different port/protocol · Issue #18135 · getsentry/sentry-javascript
X Title: Handle the case where users define a different port/protocol · Issue #18135 · 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/18135
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle the case where users define a different port/protocol","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 SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n10.23.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\n1. enable sentry debug: true in instrumentation.ts\n2. run next.js app using the https://localhost:8080 (non default port and protocol)\n\n### Expected Result\n\nno error in console\n\n### Actual Result\n\nSentry Logger [error]: Failed to symbolicate event with Next.js dev server TypeError: fetch failed\n\nin the node.js logs:\nSentry Logger [log]: Flushing events...\nSentry Logger [log]: Flushing events...\nSentry Logger [log]: Flushing outcomes...\nSentry Logger [log]: No outcomes to send\nSentry Logger [log]: Flushing outcomes...\nSentry Logger [log]: No outcomes to send\nSentry Logger [error]: Failed to symbolicate event with Next.js dev server [TypeError: fetch failed] {\n __reportSent: true,\n [cause]: Error: connect ECONNREFUSED 127.0.0.1:3000\n at \u003cunknown> (Error: connect ECONNREFUSED 127.0.0.1:3000) {\n errno: -61,\n code: 'ECONNREFUSED',\n syscall: 'connect',\n address: '127.0.0.1',\n port: 3000\n }\n}\n\n### Additional Context\n\n\u003csub>Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>\n\nSource code related: https://github.com/getsentry/sentry-javascript/blob/10211f432addf326d36fc168be59924e4ccaca43/packages/nextjs/src/common/devErrorSymbolicationEventProcessor.ts#L139\n\nit has:\n```\nconst res = await suppressTracing(() =>\n fetch(\n `${\n // eslint-disable-next-line no-restricted-globals\n typeof window === 'undefined' ? 'http://localhost:3000' : '' // TODO: handle the case where users define a different port\n }${basePath}/__nextjs_original-stack-frame?${params.toString()}`,\n {\n signal: controller.signal,\n },\n ).finally(() => {\n clearTimeout(timer);\n }),\n );\n```\n\nso it simply not implemented\n\nmaybe we can just provide some config option here?","author":{"url":"https://github.com/maslowivan","@type":"Person","name":"maslowivan"},"datePublished":"2025-11-10T10:30:25Z","url":"https://github.com/getsentry/sentry-javascript/issues/18135"}
| 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:d4b237f7-317e-714e-16e1-b15a5389f599 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A646:57C3A:12AFF4E:1A39C4B:6B045581 |
| html-safe-nonce | 5acfa42c3bc07982d018bce84302556e8971180c7f5a7ce6e1b6304ac0adb772 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjQ2OjU3QzNBOjEyQUZGNEU6MUEzOUM0Qjo2QjA0NTU4MSIsInZpc2l0b3JfaWQiOiIzMzk0MTAyMTc1NjM2MDg0NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8ff0337b83105b1bd7e370c84393324f22dae044d70d9a2a6f605ae47a4b1951 |
| hovercard-subject-tag | issue:3607315680 |
| 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/18135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2c357317121287332f3ed88c9ddeeb1194a11974db04a15746339eb87486f93/getsentry/sentry-javascript/issues/18135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2c357317121287332f3ed88c9ddeeb1194a11974db04a15746339eb87486f93/getsentry/sentry-javascript/issues/18135 |
| 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 | maslowivan |
| 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