{"record":{"id":"3082737b103cf029","repo":"gitbutlerapp/gitbutler","slug":"invalid-playlist-url","errorCode":null,"errorMessage":"Invalid playlist URL","messagePattern":"Invalid playlist URL","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/web/src/routes/(home)/sections/FeatureUpdates.svelte","lineNumber":147,"sourceCode":"\n\t\treturn () => {\n\t\t\tclearTimeout(timeoutId);\n\t\t\tcarousel?.removeEventListener(\"scroll\", updateScrollState);\n\t\t};\n\t});\n\n\t$effect(() => {\n\t\tif (playlist && carousel) {\n\t\t\tsetTimeout(updateScrollState, 100);\n\t\t}\n\t});\n\n\t// Data loading\n\tonMount(async () => {\n\t\ttry {\n\t\t\tconst playlistId = extractPlaylistId(PLAYLIST_URL);\n\t\t\tif (!playlistId) {\n\t\t\t\tthrow new Error(\"Invalid playlist URL\");\n\t\t\t}\n\n\t\t\tplaylist = await fetchPlaylistVideos(playlistId);\n\t\t} catch (err) {\n\t\t\terror = err instanceof Error ? err.message : \"Failed to load videos\";\n\t\t\tconsole.error(\"Error loading playlist:\", err);\n\t\t} finally {\n\t\t\tisLoading = false;\n\t\t}\n\t});\n</script>\n\n<section class=\"feature-updates\">\n\t<SectionHeader>\n\t\t<i>Feature</i> updates\n\n\t\t{#snippet buttons()}\n\t\t\t<div class=\"feature-updates__all-demos\">","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/apps/web/src/routes/(home)/sections/FeatureUpdates.svelte#L129-L165","documentation":"Guard in the feature-updates section's onMount: extractPlaylistId failed to find a playlist ID in the hardcoded PLAYLIST_URL constant, so the YouTube playlist of release videos cannot be fetched. This is a problem with a build-time constant (malformed or changed URL), not a runtime network failure.","triggerScenarios":"Thrown at apps/web/src/routes/(home)/sections/FeatureUpdates.svelte:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the PLAYLIST_URL constant so it contains a valid YouTube playlist ID","Make extractPlaylistId accept all YouTube playlist URL forms (list= parameter, shorts/permalink variants)","Fail soft by rendering the section's error state instead of throwing when the playlist cannot be resolved"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"58e5313667b857ef39a730e380af31816a7b1768","analyzedAt":"2026-09-18T06:50:32.052Z","contentChangedAt":"2026-09-18T06:50:32.052Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}