-
-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current Instance Vanishes Sporadically #5615
Comments
The list of instances is fetched from https://piped-instances.kavin.rocks. If the instance is down, it will be removed from temporarily from https://piped-instances.kavin.rocks and hence is not visible in LibreTube. We could discuss if it makes sense to display the currently selected instance in the instances list even though it's monitored as down by https://piped-instances.kavin.rocks for convenience, but I'm not really sure if that's a good idea.
This can happen due to DNS caching issues when something about the infrastructure of the selected instance changes, I recommend just clearing the cache of the app in case LibreTube doesn't work while the instance is functional in the browser. |
I feel like a common solution to this is to display the currently selected instance as grayed out. But I do agree with the issue creator that the current behavior can be confusing. |
Not sure how hard it would be to implement, but if we could have a toggle (default off) for that, I think it might be the best solution for those that have the problem. From your description it looks like a pretty rare issue.
That'd be amazing too! Thanks for the quick reply! |
It also happens frequently (to me). When I open the app and immediately access the settings/instances, the initially selected instance is 'privacydev.net'. However, after a few seconds, the app automatically switches to the instance I'm currently using. |
Steps to reproduce
Expected behavior
The app doesn't randomly change the instance list.
Actual behavior
About once a week the app will open to a blank screen (only navigation bar and top bar visible) with a toast message stating that the instance is borked (but in reality it's not the instance at fault). When I look into the instance list I find that some instances are missing (usually the one that was set and some others) and none is selected. I've confirmed this behavior with adminforge.de and the official Piped instance.
Selecting another instance somtimes fixes the issue, however I've found force quitting (via settings, not swiping the app away) to be more reliable. I can then use the same instance as before; at least for a while.
LibreTube version
0.21.1
Android version
Android 14 (also present with Android 13)
Other details
I think this is separate from #5579, as nothing is loading, not even thumbnails or titles of videos.
As this is a random error, I reckon the easiest path is to handle instance failures more gracefully. A toast message is not ideal for a fatal error like this. How about a dialog that links to instance settings?
However, the instance message sometimes appears while watching a video (due to poor connectivity or the instance actually being poorly maintained etc.). Therefore this dialog should only appear if all of the following conditions are met:
Alternatively, a fallback instance setting could be added.
If you let me know how, I'll try getting logs the next time this occurs.
Acknowledgements
The text was updated successfully, but these errors were encountered: