gnmyt / myspeed

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

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

Open 825i opened 5 months ago

825i commented 5 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 5 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 5 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.

charlestephen commented 3 weeks ago

Can confirm that this is definitely still an issue. Any way to fix this?

connorajersch commented 5 days ago

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: image

Turge08 commented 5 days ago

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: image

It doesn't change anything for me.

Paul1404 commented 1 hour ago

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: image

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 πŸ‘

Turge08 commented 58 minutes ago

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: image

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.