gnmyt / myspeed

A speed test analysis software that shows your internet speed for up to 30 days
https://myspeed.dev
MIT License
676 stars 30 forks source link

[Bug] "Failed to load translations" Infinite reload loop error #725

Open 825i opened 4 months ago

825i commented 4 months ago

General

The Bug

Getting this error:

Screenshot 2024-06-25 203407

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

825i commented 4 months ago

More debugging:

Screenshot 2024-06-25 204333

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.

gnmyt commented 4 months ago

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

825i commented 4 months ago

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): Screenshot 2024-07-06 130221

There's a whole bunch of issues associated with this redirect loop too.

image

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.