Create channel album not working in fresh install
Steps to reproduce
I did a fresh install via curl
on Ubuntu 20.04 (LTS) x64. Channels are not working correctly.
What happens?
When uploading to a channel I get a spinner preventing me from creating new albums:
In order to create the album shown in the screenshot above ("FAWM 2022") I had to open the browser console and delete the DOM node corresponding to the spinner/overlay. Only then I could add an album and a track.
I checked the browser console and noticed 2 things:
(1) An error "Can’t establish a connection to the server at wss:". I checked the autogenerated nginx config for my site and noticed it was missing this part:
# required for websocket support
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
Restarting nginx after adding that section fixed the WS message, but the spinner is still there.
(2) There's a JS error message:
Uncaught (in promise) TypeError: i is null
a https://songs.thefishermenandthepriestess.com/front/js/albums~artists~channels~core~favorites~library~playlists~radios.6e5e4f8b.js:1
l https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:47
r https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:47
C https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:47
r https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:30
s https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:30
i https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:30
i https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:30
fetchData https://songs.thefishermenandthepriestess.com/front/js/albums~artists~channels~core~favorites~library~playlists~radios.6e5e4f8b.js:1
created https://songs.thefishermenandthepriestess.com/front/js/albums~artists~channels~core~favorites~library~playlists~radios.6e5e4f8b.js:1
re https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Un https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
_init https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
_init https://songs.thefishermenandthepriestess.com/front/js/chunk-index-vendors.b359bee4.js:42
a https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
sn https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
init https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
v https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
b https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Io https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
_update https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
r https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
get https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
rr https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Rn https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
$mount https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
init https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
v https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
b https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Io https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
_update https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
r https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
get https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
rr https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Rn https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
$mount https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
init https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
n https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
v https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
b https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
b https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
b https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
d https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
E https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
j https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Io https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
_update https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
r https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
get https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
run https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
Yn https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
he https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
fe https://songs.thefishermenandthepriestess.com/front/js/chunk-vendors.c6c1d9c2.js:7
albums~artists~channels~core~favorites~library~playlists~radios.6e5e4f8b.js:1:17571
What is expected?
The overlay with the spinner should not be there.
Context
Funkwhale version(s) affected: 1.2.2+git.ddb7023f
Happens in both Firefox and Chrome.