Skip to content

Can't Pull Playlist Data #6

Description

@ijabit

Great library!

When I call the method GetCatalogPlaylist it generates a response from the following URL:
https://api.music.apple.com/v1/catalog/us/playlists/pl.1c35ac10cfe848aaa19f68ebe62ea46e

The JSON serializer can't deserialize the result and throws the following exception:
"Could not create an instance of type AppleMusicAPI.NET.Models.Core.ResourceRoot. Type is an interface or abstract class and cannot be instantiated. Path 'data[0].relationships.tracks.data[0].id', line 1, position 1417."

I noticed that the properties on the relationship track object have a Meta property but no Attributes property to represent the attributes in the JSON data returned. Maybe that's part of the problem? I don't really know how to troubleshoot this issue.

Can you point me in the right direction at least?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions