Title: Http client errors not sent when relay is hosted on the same domain. · Issue #17385 · getsentry/sentry-javascript · GitHub
Open Graph Title: Http client errors not sent when relay is hosted on the same domain. · Issue #17385 · getsentry/sentry-javascript
X Title: Http client errors not sent when relay is hosted on the same domain. · Issue #17385 · 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/17385
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Http client errors not sent when relay is hosted on the same domain.","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/react\n\n### SDK Version\n\n9.40.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. Configure relay to listen to events on my.domain.com.\n2. Configure the SDK to send events via relay.\n3. Trigger 5xx errors when sending Fetch or XHR requests to my.domain.com\n\n### Expected Result\n\nThe SDKs HttpClient integration detects the error and sends via relay. The SDK logs when relay is hosted on a different domain (for example, my.ingest.domain.com):\n\n```\nPOST https://my.domain.com/api/v1/.... 500 (Internal Server Error)\nSentry Logger [log]: Captured error event `HTTP Client Error with status code: 500`\n```\n\n### Actual Result\n\nThe SDK does not send the event to relay when it is hosted in the same domain. The SDK logs do not show the entry `Sentry Logger [log]: Captured error event `HTTP Client Error with status code: 500` after the error:\n\n```\nPOST https://my.domain.com/api/v1/.... 500 (Internal Server Error)\nSentry Logger [log]: Flushing outcomes...\nSentry Logger [log]: Sending outcomes: [{…}]0: {reason: 'sample_rate', category: 'transaction', quantity: 1}length: 1[[Prototype]]: Array(0)\nFetch finished loading: POST \"https://my.domain.com/api/[PROJ_ID]/envelope/?sentry_version=7&sentry_key=[KEY_ID]&sentry_client=sentry.javascript.react%2F9.40.0\".\n```\n\n\nIn resume:\nDoes not work on shared domain name:\n\n- Application domain: my.domain.com\n- Sentry relay: my.domain.com/sentry/\n\nor\n\n- Application domain: my.app.domain.com\n- Sentry relay: my.app.domain.com/sentry/\n\nDoes work on mixed domain names:\n\n- Application domain: my.domain.com\n- Sentry relay: my.ingest.domain.com/sentry/\n\nor\n\n- Application domain: my.app.domain.com\n- Sentry relay: my.domain.com/sentry/","author":{"url":"https://github.com/rodolfoBee","@type":"Person","name":"rodolfoBee"},"datePublished":"2025-08-12T07:58:56Z","url":"https://github.com/getsentry/sentry-javascript/issues/17385"}
| 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:5dacdf52-163d-f84c-6564-352f0fc184cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A0A:3ED092:9B4A4F:D8B120:6B059F70 |
| html-safe-nonce | 69d1aeda2d75ab9b81f0e58645345ad0ec63fb814e64264ba6437951655c8745 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTBBOjNFRDA5Mjo5QjRBNEY6RDhCMTIwOjZCMDU5RjcwIiwidmlzaXRvcl9pZCI6Ijk0ODM0NDUxMzIxNzUzNTg1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d3031edaae35c06638ed0979d31547fe8bb84f7079d8bdb87120c55d30a3b9e |
| hovercard-subject-tag | issue:3313024878 |
| 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/17385/issue_layout |
| twitter:image | https://opengraph.githubassets.com/875f0e3e713ba86ac32506d0b52d0c441f3bf74f75815a70540bd967c78c3181/getsentry/sentry-javascript/issues/17385 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/875f0e3e713ba86ac32506d0b52d0c441f3bf74f75815a70540bd967c78c3181/getsentry/sentry-javascript/issues/17385 |
| 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 | rodolfoBee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8bd54b96ae4db60ce608a145a6b2fb16216749fbdb431d9879aabfa7459f1139 |
| 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 | cda4791073b4da3005eb3d470dc0aef3956bbe34 |
| 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