gitbutlerapp/gitbutler · error

Invalid playlist URL

Error message

Invalid playlist URL

What it means

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.

Solutions

  1. Fix the PLAYLIST_URL constant so it contains a valid YouTube playlist ID
  2. Make extractPlaylistId accept all YouTube playlist URL forms (list= parameter, shorts/permalink variants)
  3. Fail soft by rendering the section's error state instead of throwing when the playlist cannot be resolved
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at apps/web/src/routes/(home)/sections/FeatureUpdates.svelte:147 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18). Data as JSON: /api/errors/3082737b103cf029. Report an issue: GitHub.

Appendix: source

Thrown at apps/web/src/routes/(home)/sections/FeatureUpdates.svelte:147

		return () => {
			clearTimeout(timeoutId);
			carousel?.removeEventListener("scroll", updateScrollState);
		};
	});

	$effect(() => {
		if (playlist && carousel) {
			setTimeout(updateScrollState, 100);
		}
	});

	// Data loading
	onMount(async () => {
		try {
			const playlistId = extractPlaylistId(PLAYLIST_URL);
			if (!playlistId) {
				throw new Error("Invalid playlist URL");
			}

			playlist = await fetchPlaylistVideos(playlistId);
		} catch (err) {
			error = err instanceof Error ? err.message : "Failed to load videos";
			console.error("Error loading playlist:", err);
		} finally {
			isLoading = false;
		}
	});
</script>

<section class="feature-updates">
	<SectionHeader>
		<i>Feature</i> updates

		{#snippet buttons()}
			<div class="feature-updates__all-demos">

View on GitHub (pinned to 58e5313667)