[Bug] "Failed to load translations" Infinite reload loop error
General
- [X] I have updated to the latest version of MySpeed.
- [X] My bug has not been reported yet.
The Bug
Getting this error:
Worked fine for a few days then stopped. Docker container is showing that it is doing tests without any problems but the UI is stuck in an infinite loop of reloading due to this "translations" issue.
Test #107 was executed successfully in 9s. 🏓 1 ⬇ 932.28️ ⬆ 492.6️
Looking for network interfaces...
Found interface eth0 with IP 172.18.0.13
Test #108 was executed successfully in 13s. 🏓 0 ⬇ 931.65️ ⬆ 492.58️
Looking for network interfaces...
Found interface eth0 with IP 172.18.0.13
Test #109 was executed successfully in 12s. 🏓 0 ⬇ 889.88️ ⬆ 492.56️
Looking for network interfaces...
Found interface eth0 with IP 172.18.0.13
Test #110 was executed successfully in 10s. 🏓 0 ⬇ 898.87️ ⬆ 492.39️
Looking for network interfaces...
Found interface eth0 with IP 172.18.0.13
Test #111 was executed successfully in 10s. 🏓 0 ⬇ 913.87️ ⬆ 492.49️
Looking for network interfaces...
Found interface eth0 with IP 172.18.0.13
Test #112 was executed successfully in 12s. 🏓 0 ⬇ 922.01️ ⬆ 493.25️
What device are you using to access the page?
In the browser
Which operating system is your MySpeed instance running on?
Linux
More debugging:
It shows the fronts are not being loaded for some reason. Despite the fact that I can clearly see them referenced in the browser.
There's also a manifest.json error.
Hey, This error should only occur if the translation files could not be loaded. This might be due to caching an old MySpeed version or MySpeed trying to load a language that does not exist.
For further debugging, could you please share the Network tab in the DevTools? There should be .json files being loaded while starting (for me it's en.json & de.json - English and German). You can use the Fetch/XHR filter at the top to have the list a little bit cleaner.
If you found the request to the .json file, click on it and go to the Response tab there
I am reopening this. It seems to happen over and over again and this time clearing cache has done absolutely nothing. There is definitely a fundamental problem with this application and the way it is caching or using fonts.
I recommend you remove all custom fonts and just use built-in fonts supplied via OS and browser. There's really no reason to require custom fonts that for some reason or another are not able to be decoded by mainstream chromium based browsers...
Here's the network tab you asked for (with my site's url removed for privacy):
There's a whole bunch of issues associated with this redirect loop too.
It would be a better idea to make the redirect manual. "Click here to refresh" etc. so there's time to actually troubleshoot and debug the error. Because the page keeps refreshing I need to essentially block that process to even try and figure this out.
Can confirm that this is definitely still an issue. Any way to fix this?
Not sure if this helps but I was getting the same error while trying to access myspeed through a cloudflared tunnel. Switching the following toggle on in the settings for the zero trust application under "access" seemed to help for me:
Not sure if this helps but I was getting the same error while trying to access myspeed through a cloudflared tunnel. Switching the following toggle on in the settings for the zero trust application under "access" seemed to help for me:
It doesn't change anything for me.
Not sure if this helps but I was getting the same error while trying to access myspeed through a cloudflared tunnel. Switching the following toggle on in the settings for the zero trust application under "access" seemed to help for me:
It doesn't change anything for me.
@Turge08 Hey i also had this issue with cloudflare tunnel, this was fixed by the Solution from @charlestephen -> But i also had to clear the website data in my browser now it works perfectly via the cf tunnel 👍
Not sure if this helps but I was getting the same error while trying to access myspeed through a cloudflared tunnel. Switching the following toggle on in the settings for the zero trust application under "access" seemed to help for me:
It doesn't change anything for me.
@Turge08 Hey i also had this issue with cloudflare tunnel, this was fixed by the Solution from @charlestephen -> But i also had to clear the website data in my browser now it works perfectly via the cf tunnel 👍
Thanks. I cleared the site data in the brave browser on my phone and that fixed it.
Hi I have the same exact issue i need to clear cache everytime it happens
Edit: I use CF tunnel so I will try if it works and report. Thanks for the fix
I think I found the actual mechanism behind this, tracing through a similar "stuck on old version" symptom on my own deployment (browser served a completely stale UI/JS bundle against an upgraded server; private browsing always worked; clearing site data always fixed it — matches everyone's reports here).
Root cause: MySpeed registers a PWA service worker via vite-plugin-pwa (client/vite.config.js) with no registerType set, which defaults to "prompt". In that mode, the generated sw.js only calls skipWaiting() in response to a SKIP_WAITING postMessage from the page:
self.addEventListener("message", e ={
if (e.data && e.data.type === "SKIP_WAITING") self.skipWaiting();
});
Nothing in the client code ever sends that message. So once a service worker is installed for your origin, every subsequent deploy's new service worker installs but sits permanently in the "waiting" state, and the old one keeps controlling the page and serving its precached snapshot of index.html and the JS/CSS bundles — indefinitely, regardless of what the server now actually serves. That's exactly what produces "failed to load translations": the old cached JS is calling for translation files/keys that no longer match what the current server/version expects.
This explains the pattern in this thread:
- Private/incognito always works — no service worker has ever been registered there, so it always fetches live.
- Clearing site data always fixes it — that's the only way to remove the stuck service worker (a plain "clear cache" without also clearing storage may not — it depends on whether the browser buckets service worker/Cache Storage under "cache").
- Cloudflare tunnel toggles don't reliably fix it — this isn't a network/edge-caching issue at all. The service worker intercepts the navigation request client-side, before it ever reaches Cloudflare or your origin.
- Sometimes it self-resolves after just closing all tabs to the site and reopening — that lets an already-downloaded "waiting" worker finally take over once nothing is still using the old one.
I confirmed this by comparing the generated sw.js output with the default config vs. registerType: "autoUpdate": the latter changes that snippet to self.skipWaiting(); clientsClaim();, called unconditionally on install — so a new version takes over immediately instead of waiting forever for a message nothing sends.
Happy to open a PR for the registerType: "autoUpdate" change (plus explicit Cache-Control headers on the server side, since it never sends any right now either) if that'd be useful.
