Title: HTTP Requests to `example.com` on Sentry.init · Issue #18218 · getsentry/sentry-javascript · GitHub
Open Graph Title: HTTP Requests to `example.com` on Sentry.init · Issue #18218 · getsentry/sentry-javascript
X Title: HTTP Requests to `example.com` on Sentry.init · Issue #18218 · getsentry/sentry-javascript
Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
Open Graph Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
X Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.
Opengraph URL: https://github.com/getsentry/sentry-javascript
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HTTP Requests to `example.com` on Sentry.init","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/browser\n\n### SDK Version\n\n8.34.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\nhttps://tandahq.sentry.io/issues/6950814233/?project=4507847337181184&query=is%3Aunresolved&referrer=issue-stream\n\n### Reproduction Example/SDK Setup\n\nWe have been getting this error in production when Sentry is initially configured:\n\n\u003cimg width=\"1253\" height=\"418\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7ee14271-67b0-4ef7-9129-f2553950eb04\" />\n\nI believe this is because of this method checking the browser can use `fetch`: \nhttps://github.com/getsentry/sentry-javascript/blob/74822de7db0996aa2faaf92d2970d6fb07093892/packages/core/src/utils/supports.ts#L83\n\nThis has caused `1.1m` errors in the last few weeks & I would like to understand if there's a reason this needs to be the `http` endpoint? The only issue I found somewhat related to this is about e2e tests in https://github.com/getsentry/sentry-javascript/pull/15052\n\nI have a draft PR here: https://github.com/getsentry/sentry-javascript/pull/18217 \n\n### Steps to Reproduce\n\nThis is my `sentry.js`\n\n```js\n// @flow\nimport * as Sentry from \"@sentry/browser\"\n\nconst enabledEnvironments = [\"development\", \"staging\", \"production\"]\n\nconst isEnabled = enabledEnvironments.includes(process.env.TARGET_RAILS_ENV)\nconst commitSha = process.env.COMMIT_SHA || \"unknown\"\nconst payausUrls = [/https?:\\/\\/.*\\.tanda\\.co/, /https?:\\/\\/.*\\.workforce\\.com/]\n\nif (isEnabled) {\n Sentry.init({\n dsn: \"our_dsn\",\n release: `${commitSha}`,\n environment: process.env.TARGET_RAILS_ENV,\n allowUrls: payausUrls,\n\n // This is error sampling:\n // https://docs.sentry.io/platforms/javascript/configuration/options/#sample-rate\n sampleRate: 1,\n\n // No perf sampling from frontend.\n // https://docs.sentry.io/platforms/javascript/configuration/options/#tracing-options\n enableTracing: true,\n tracesSampleRate: 0,\n tracePropagationTargets: payausUrls,\n\n ignoreErrors: [\n \"__gCrWeb.autofill.extractForms\",\n \"Background Sync is disabled\",\n \"Request failed with status code\",\n \"__firefox__\",\n /maininit|\\$/,\n \"_isMatchingDomain is not defined\",\n \"Failed to execute 'postMessage' on 'Window':\",\n \"AbortError\",\n \"createError\",\n \"node_modules\",\n \"AxiosError\", // Added but unsure it would even mute the error if it's happening during `init`\n ],\n denyUrls: [\"js.intercomcdn.com\"],\n beforeSend(event) {\n if (event.user) {\n delete event.user.username\n delete event.user.email\n }\n\n return event\n },\n })\n\n window.current_user && Sentry.setUser({ id: window.current_user.id })\n\n const euUrl = /^https?:\\/\\/.*.?eu\\.(workforce|tanda)/\n const region = window.location.href.match(euUrl) ? \"frankfurt\" : \"sydney\"\n\n Sentry.setTag(\"region\", region)\n}\n\n```\n\n### Expected Result\n\nNo error\n\n### Actual Result\n\nErrors every time Sentry is initialised\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\n\u003cimg width=\"1656\" height=\"913\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c66a06a2-67f8-4dce-9e50-a1e77e213fc6\" />","author":{"url":"https://github.com/AwolDes","@type":"Person","name":"AwolDes"},"datePublished":"2025-11-17T01:15:30Z","url":"https://github.com/getsentry/sentry-javascript/issues/18218"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:362a0af9-1c11-ef16-7516-d3173167b112 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E356:1F60EA:C6D98:117216:6B04317D |
| html-safe-nonce | 6dfcd0bbef2b460e3df3b0ce56025b75ffaf568820f72632467a224c12a1a2fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzU2OjFGNjBFQTpDNkQ5ODoxMTcyMTY6NkIwNDMxN0QiLCJ2aXNpdG9yX2lkIjoiODc1NTk5MzQ5MTM0MTA2MjUyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69989b284bc41d548f86b3b68cbbe7ca8977cb3071780fe8c55950554899544d |
| hovercard-subject-tag | repository:3328572 |
| 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/getsentry/sentry-javascript/issues/18218 |
| twitter:image | https://repository-images.githubusercontent.com/3328572/1b73c77d-6488-4ece-9e12-e61d9eb2ac2b |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/3328572/1b73c77d-6488-4ece-9e12-e61d9eb2ac2b |
| og:image:alt | Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-cache |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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