Skip to content

Conversation

@danielvy
Copy link

Summary

PlaylistsEndpoints methods addItemsToPlaylist() and removeItemsFromPlaylist() were missing return values.

Changes

Added SnapshotReference return value from addItemsToPlaylist() and removeItemsFromPlaylist() in PlaylistsEndpoints.

Results

These methods now return the SnapshotReference response from WEB API.

@skrenek
Copy link

skrenek commented Sep 15, 2024

+1 vote to get this one merged.

ryo-morimoto added a commit to ryo-morimoto/spotify-mcp that referenced this pull request Jul 13, 2025
The Spotify Web API TypeScript SDK currently does not return snapshot_id
from addItemsToPlaylist and removeItemsFromPlaylist methods, causing
"Cannot read properties of undefined" errors.

This is a known SDK issue tracked at:
- Issue: spotify/spotify-web-api-ts-sdk#122
- PR (pending): spotify/spotify-web-api-ts-sdk#123

Until the SDK is fixed, we return a placeholder value to prevent runtime errors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants