WebUI slow loading after fast scrolling the videos

Hello. I've been scrolling the videos in video section by clicking (or holding) the right arrow key. after a while video thumbnail won't load so i decided to refresh (F5) it and after that loading too long, i decided to go to base domain to just load the main page of Immich. Even that took a long time so i checked logs and found this spammed in console
[Nest] 7 - 06/16/2023, 12:53:30 PM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:399:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:525:35)
at emitCloseNT (node:_http_server:984:10)
at Socket.onServerResponseClose (node:_http_server:277:5)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:322:12)
[Nest] 7 - 06/16/2023, 12:53:30 PM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:399:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:525:35)
at emitCloseNT (node:_http_server:984:10)
at Socket.onServerResponseClose (node:_http_server:277:5)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:322:12)
15 Replies
Alex Tran
Alex Tran2y ago
Which video section is this?
Mr.Green Cake
Mr.Green CakeOP2y ago
Explore tab -> Video Category at the bottom
Alex Tran
Alex Tran2y ago
Is this just one time occurence? Can you reproduce it multiple times?
Mr.Green Cake
Mr.Green CakeOP2y ago
i'm going to try turns out it's making the same error even if i'm randomly playing with immich web ui
Alex Tran
Alex Tran2y ago
the error in the log you see can be ignore
Mr.Green Cake
Mr.Green CakeOP2y ago
but when i did a refresh on a video from that Video category i got this error this time
Not found: /search/photos/a9e2752e-d2d2-4ee3-bf8b-redacted - 500
Error: Not found: /search/photos/a9e2752e-d2d2-4ee3-bf8b-f4bc607fc13c
at resolve (file:///usr/src/app/build/server/index.js:3861:18)
at resolve (file:///usr/src/app/build/server/index.js:3736:34)
at Object.handle (file:///usr/src/app/build/server/chunks/hooks.server-eaba8656.js:21:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async respond (file:///usr/src/app/build/server/index.js:3734:22)
at async Array.ssr (file:///usr/src/app/build/handler.js:1207:3)
Not found: /search/photos/a9e2752e-d2d2-4ee3-bf8b-redacted - 500
Error: Not found: /search/photos/a9e2752e-d2d2-4ee3-bf8b-f4bc607fc13c
at resolve (file:///usr/src/app/build/server/index.js:3861:18)
at resolve (file:///usr/src/app/build/server/index.js:3736:34)
at Object.handle (file:///usr/src/app/build/server/chunks/hooks.server-eaba8656.js:21:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async respond (file:///usr/src/app/build/server/index.js:3734:22)
at async Array.ssr (file:///usr/src/app/build/handler.js:1207:3)
Alex Tran
Alex Tran2y ago
it is just notify the video stream hasn't finished
Alex Tran
Alex Tran2y ago
like this right?
No description
Mr.Green Cake
Mr.Green CakeOP2y ago
yup
Alex Tran
Alex Tran2y ago
yeah we don't have a hard route to handle direct navigation to that path
Mr.Green Cake
Mr.Green CakeOP2y ago
so the route is randomly generated for the same video each time?
Alex Tran
Alex Tran2y ago
not really, it is a client side component that we overlay on top of the search result page
Mr.Green Cake
Mr.Green CakeOP2y ago
right
Alex Tran
Alex Tran2y ago
we might circle back to these scenarios to handle hard routing for all views but it is more complex since to enable navigation you will have to know which context the assets are view from (i.e from search result, from album, from timeline) to load the previous and next assets
Mr.Green Cake
Mr.Green CakeOP2y ago
yup. It's clearly not a priority right now. And it shouldn't be. There are bigger issues / features that would need to get done first. Closing this for now.

Did you find this page helpful?