You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Http client errors not sent when relay is hosted on the same domain. #17385
Configure relay to listen to events on my.domain.com.
Configure the SDK to send events via relay.
Trigger 5xx errors when sending Fetch or XHR requests to my.domain.com
Expected Result
The 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):
POST https://my.domain.com/api/v1/.... 500 (Internal Server Error)
Sentry Logger [log]: Captured error event `HTTP Client Error with status code: 500`
Actual Result
The 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:
POST https://my.domain.com/api/v1/.... 500 (Internal Server Error)
Sentry Logger [log]: Flushing outcomes...
Sentry Logger [log]: Sending outcomes: [{…}]0: {reason: 'sample_rate', category: 'transaction', quantity: 1}length: 1[[Prototype]]: Array(0)
Fetch 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".
Hi, apologies for the delay! I just revisited the PR and made a few imporvements as well as fixing some failing tests. We'll ship this fix in the next days.
We've just merged the fix but we're facing some issues with CI. So it'll still take some hours to get the release out. Once it is published, another message will be posted in this issue.
Activity
linear commentedon Aug 12, 2025
JS-854 Http client errors not sent when relay is hosted on the same domain.
Lms24 commentedon Aug 13, 2025
This will be fixed by #17393. Thanks for reporting!
rodolfoBee commentedon Aug 25, 2025
@Lms24 can we have an update on the release of the fix #17393?
Lms24 commentedon Aug 25, 2025
Hi, apologies for the delay! I just revisited the PR and made a few imporvements as well as fixing some failing tests. We'll ship this fix in the next days.
Lms24 commentedon Aug 26, 2025
We've just merged the fix but we're facing some issues with CI. So it'll still take some hours to get the release out. Once it is published, another message will be posted in this issue.
fix(core): Only consider ingest endpoint requests when checking `isSe…
github-actions commentedon Aug 26, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #17393, which was included in the 10.6.0 release.