Server Error when loading library pages in a new tab
Steps to reproduce
- Open a library page (for an artist, track, or album) in a new tab from the front-end.
- Wait for that new tab to load.
Alternatively,
- Navigate to a library page for an artist, track, or album
- Refresh the browser page
- Wait for the page to reload
What happens?
The relevant library page fails to load, instead returning a Server Error 500 code.
When the error occurs, the Funkwhale API container logs show a python stacktrace from the create_connection function in urllib3.
Attached is an example API log when trying to open track 744 of the instance in a new tab.
Note: The instance domain has been replace with '[instance.domain]'
What is expected?
The relevant library page will load normally, in the same way as it does when navigated to within an existing browser tab.
Context
The issue only seems to occur when opening pages in a new tab. The same pages load correctly within an existing funkwhale tab. The error occurred across all browsers I tried (Edge, Firefox, and Chrome on Windows 10; Chrome and Firefox on Android)
Funkwhale Version 1.4.0
Instance type: Docker