Title: Sentry.sendFeedback is not a function when using the CDN · Issue #17516 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry.sendFeedback is not a function when using the CDN · Issue #17516 · getsentry/sentry-javascript
X Title: Sentry.sendFeedback is not a function when using the CDN · Issue #17516 · 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/17516
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry.sendFeedback is not a function when using the CDN","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\nSentry Browser CDN bundle\n\n### SDK Version\n\n10.8.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\nhttps://dragonfruit-us.sentry.io/issues/6854262666/?query=is%3Aunresolved&referrer=issue-stream\n\n### Reproduction Example/SDK Setup\n\n```html\n\u003c!DOCTYPE html>\n\u003chtml lang=\"en\">\n \u003chead>\n \u003cmeta charset=\"UTF-8\" />\n \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n \u003cscript\n src=\"https://browser.sentry-cdn.com/10.8.0/bundle.tracing.replay.feedback.js\"\n crossorigin=\"anonymous\"\n >\u003c/script>\n \u003c/head>\n \u003cbody>\n \u003ch1>Sentry sendFeedback test\u003c/h1>\n \u003cdiv>\n \u003cspan>Status:\u003c/span>\n \u003cspan id=\"status\">Waiting\u003c/span>\n \u003c/div>\n \u003cbutton onclick=\"Sentry.captureException(new Error('Test Error'))\">\n Capture Exception\n \u003c/button>\n\n \u003cscript>\n const getAndSendUserFeedback = eventId => {\n // Assume this came from a form that was shown to the user\n const userFeedback = {\n name: \"Name\",\n email: \"user@example.com\",\n message: \"Feedback message\",\n associatedEventId: eventId,\n };\n\n const request = Sentry.sendFeedback(userFeedback);\n\n request.then(response => {\n if (response.status === 200) {\n document.querySelector(\"#status\").textContent = \"Success\";\n } else {\n document.querySelector(\"#status\").textContent = \"Failure\";\n }\n })\n .catch(() => {\n document.querySelector(\"#status\").textContent = \"Failure\";\n });\n };\n\n\n window.addEventListener(\"load\", function () {\n Sentry.init({\n dsn: \"DSN_URL_HERE\",\n environment: \"development\",\n\n beforeSend(event, hint) {\n if (event.exception && event.event_id) {\n // Open feedback form to get user feedback\n getAndSendUserFeedback(event.event_id);\n }\n return event;\n },\n\n integrations: [\n Sentry.feedbackIntegration({\n autoInject: false,\n }),\n ],\n });\n });\n \u003c/script>\n \u003c/body>\n\u003c/html>\n```\n\n### Steps to Reproduce\n\nRun the script above and click the \"Capture Exception\" button.\n\n### Expected Result\n\nUser feedback should be sent normally.\n\n### Actual Result\n\nThe app throws the error `Sentry.sendFeedback is not a function`. I also tested this in my own test application and got `Failed to send feedback: window.Sentry.sendFeedback is not a function` in the browser console.","author":{"url":"https://github.com/InterstellarStella","@type":"Person","name":"InterstellarStella"},"datePublished":"2025-09-03T09:04:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/17516"}
| 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:20992e89-e3dd-734f-30aa-4e89f34348b0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5B6:31EE77:334FD83:4367E0C:6B058378 |
| html-safe-nonce | 8ac262c7d82c147a2179da77c01ec723c4e1acc7d5a5aafd748d253838b43b87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUI2OjMxRUU3NzozMzRGRDgzOjQzNjdFMEM6NkIwNTgzNzgiLCJ2aXNpdG9yX2lkIjoiNjA3NzYxNDkxMDE4MjA5Nzc4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b66da0576c8389d5b36041e66a9be74ae21cff5543e1f45504ba54c0b36b543f |
| hovercard-subject-tag | issue:3378996681 |
| 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/17516/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b98fcd280991938e22940e9c39f72030eae1d64e6e410bb1f8e2a751be676707/getsentry/sentry-javascript/issues/17516 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b98fcd280991938e22940e9c39f72030eae1d64e6e410bb1f8e2a751be676707/getsentry/sentry-javascript/issues/17516 |
| 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 | InterstellarStella |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c |
| 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 | f089e689ad324655ac44bf6cdbc04d976105b374 |
| 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