LiveStreamDVR icon indicating copy to clipboard operation
LiveStreamDVR copied to clipboard

Node.js stops when 403 appears when post stream VOD downlaod is active

Open DerBunteBall opened this issue 9 months ago • 0 comments

Describe the bug When post stream VOD and chat download is active node.js crashes when the stream has no VOD or it's not published yet. Happens also with streamers where the VOD appears later.

Node.js is gone after this happens. So the Docker Container stops and the Reverse Proxy starts to give 404 errors (Traefik does this also when the Container isn't available).

To Reproduce Enable post stream VOD and chat download. Then simply pick a streamer which has VOD publishing disabled. Then you will have good chances to see this very fast.

Expected behavior Node.js shouldn't crash and just report that VOD isn't available and eventually retry it after a while because publishing could take longer (processing on Twitch or so)

Screenshots None

Logs

dvr-dvr  | 2025-03-23T00:14:55.688Z | tw.vod.downloadVideo <error> Twitch returned 403, is the VOD deleted or subscriber only?
dvr-dvr  | /usr/local/share/twitchautomator/server/src/Core/Providers/Twitch/TwitchVOD.ts:514
dvr-dvr  |                         throw new Error(
dvr-dvr  |                         ^
dvr-dvr  |
dvr-dvr  |
dvr-dvr  | Error: Twitch returned 403, is the VOD deleted or subscriber only?
dvr-dvr  |     at <anonymous> (/usr/local/share/twitchautomator/server/src/Core/Providers/Twitch/TwitchVOD.ts:514:31)
dvr-dvr  |     at Socket.<anonymous> (/usr/local/share/twitchautomator/server/src/Helpers/Execute.ts:281:27)
dvr-dvr  |     at Socket.emit (node:events:530:35)
dvr-dvr  |     at addChunk (node:internal/streams/readable:561:12)
dvr-dvr  |     at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
dvr-dvr  |     at Readable.push (node:internal/streams/readable:392:5)
dvr-dvr  |     at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)
dvr-dvr  |
dvr-dvr  | Node.js v20.18.1

Log file doesn't show more. Only the short form of the error.

Server: Docker

Additional context Important note: This might be related to Stream/VOD divergence. To prevent muting some streamers now use a way to have VODs without music background. I don't know how exactly this works but I guess Twitch gives a ability to stream separate channels for stream and VOD. It might be possible that there are different IDs or so. So it's internally a situation of "two videos".

DerBunteBall avatar Mar 23 '25 10:03 DerBunteBall