Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while using get_playlist_info(): "Variable 'enableWatchFeedEntrypoint' has an invalid value" #14

Open
Leogendra opened this issue Jan 22, 2025 · 0 comments

Comments

@Leogendra
Copy link

Version:

  • spotapi==1.1.3
  • Python 3.12.5

Code to reproduce the error:

from spotapi import PublicPlaylist

playlist = PublicPlaylist("6zCID88oNjNv9zx6puDHKj")
playlist_info = playlist.get_playlist_info(limit=100)
print(playlist_info)

Observed Behavior:
The code outputs a ValidationError:

{
    "errors": [
        {
            "message": "Variable 'enableWatchFeedEntrypoint' has an invalid value: Variable 'enableWatchFeedEntrypoint' has coerced Null value for NonNull type 'Boolean!'",
            "locations": [
                {
                    "line": 1,
                    "column": 5055
                }
            ],
            "extensions": {
                "classification": "ValidationError"
            }
        },
        {
            "message": "Variable 'enableWatchFeedEntrypoint' undefined",
            "locations": [
                {
                    "line": -1,
                    "column": -1
                }
            ],
            "extensions": {
                "classification": "ValidationError"
            }
        }
    ],
    "data": null,
    "extensions": {}
}

Expected Behavior:
The get_playlist_info method should return the playlist details without any errors.

Additional Information:

  • The issue seems to originate from the variable enableWatchFeedEntrypoint, which is either missing or not properly handled by the API.
  • Is there a configuration or parameter I need to pass to resolve this?
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

No branches or pull requests

1 participant