Self‑Hosted Sentry Script Loader Not Working
Nexmoe October 22, 2023
This article is an AI translation and may contain semantic inaccuracies.
I recently self‑hosted Sentry on a server.
After adding it to the website with the script method, it never worked. In the console I saw this error:
The Sentry loader you are trying to use isn’t working anymore, check your configuration.
I checked GitHub and it seems to be a network issue in China.
Add the following to sentry/sentry.conf.py to fix it:
JS_SDK_LOADER_DEFAULT_SDK_URL = "https://browser.sentry-cdn.com/%s/bundle.tracing.replay.debug.min.js"
Then restart the Sentry Docker service:
sudo docker compose restart
sudo docker compose up -d