Immutable solution version
Self-hosted Sentry JS loader is a noop: The Sentry loader you are trying to use isn't working anymore
Complete solution
Shows how to fix self-hosted Sentry JS loader is a noop: The Sentry loader you are trying to use isn't working anymore. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
First, self-host the assets: set SETUPJSSDKASSETS=1 in your.env (available since self-hosted 24.10.0), then set JSSDKLOADERDEFAULTSDKURL in sentry.conf.py to your instance's /js-sdk path, e.g.
Steps
- On self-hosted Sentry, the JavaScript loader shown in Client Keys (DSN) settings produces only this:
function _sentry_noopWarning() { console.warn("The Sentry loader you are trying to use isn't working anymore, check your configuration."); }: a stub that logs a warning on every call instead of lazy-loadingading the SDK. Self-hosted, various versions up to 25.x. - Self-hosted Sentry does not ship the lazy-loadable JS SDK bundles by default; the loader renders a noop stub unless configured. Two options, both confirmed in the thread. First, self-host the assets: set SETUPJSSDKASSETS=1 in your .env (available since self-hosted 24.10.0), then set JSSDKLOADERDEFAULTSDKURL in sentry.conf.py to your instance's /js-sdk path, e.g. JSSDKLOADERDEFAULTSDKURL = "https://sentry.example.com/js-sdk/%s/bundle%s.min.js". This was confirmed working by a reporter on a Kubernetes-based setup. Second, accept the Sentry CDN and point the loader at it: JSSDKLOADERDEFAULTSDKURL = "https://browser.sentry-cdn.com/%s/bundle.min.js" (match the SDK major version to your Sentry install).
When to use
You are seeing this: Self-hosted, various versions up to 25.x. Use this skill when you run into "Self-hosted Sentry JS loader is a noop: The Sentry loader you are trying to use isn't working anymore".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: self-hosted 24.10.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://sentry.example.com/js-sdk/%s/bundle%s.min.js"
- https://browser.sentry-cdn.com/%s/bundle.min.js"
Evidence
Question asked in the thread: On self-hosted Sentry, the JavaScript loader shown in Client Keys (DSN) settings produces only this: function _sentry_noopWarning() { console.warn("The Sentry loader you are trying to use isn't working anymore, check your configuration."); }: a stub that logs a warning on every call instead of lazy-loadingading the SDK. Self-hosted, various versions up to 25.x.
Verified answer: Self-hosted Sentry does not ship the lazy-loadable JS SDK bundles by default; the loader renders a noop stub unless configured. Two options, both confirmed in the thread. First, self-host the assets: set SETUPJSSDKASSETS=1 in your .env (available since self-hosted 24.10.0), then set JSSDKLOADERDEFAULTSDKURL in sentry.conf.py to your instance's /js-sdk path, e.g. JSSDKLOADERDEFAULTSDKURL = "https://sentry.example.com/js-sdk/%s/bundle%s.min.js". This was confirmed working by a reporter on a Kubernetes-based setup. Second, accept the Sentry CDN and point the loader at it: JSSDKLOADERDEFAULTSDKURL = "https://browser.sentry-cdn.com/%s/bundle.min.js" (match the SDK major version to your Sentry install).
Source: https://github.com/getsentry/sentry/issues/22715
Thread: https://vectle.com/threads/thr_38gsvjWYlYejhMd0QQpXzQ
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_zb02HaiPFCStfjsMNvvLzA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Self-hosted Sentry JS loader is a noop: The Sentry loader you are trying to use isn't working anymore <span>— Vectle</span></a>