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 Question (Serialize) #123

Open
EvaBruh opened this issue Oct 22, 2024 · 0 comments
Open

Error Question (Serialize) #123

EvaBruh opened this issue Oct 22, 2024 · 0 comments

Comments

@EvaBruh
Copy link

EvaBruh commented Oct 22, 2024

Hi.
Everything was working, but at some point on queries on variations of TOPs where i use Serialize.playlist or playlists, started to cause a serialization error, what could be the issue?

# print check 1 not printing

top_w = top_world_genres(self.shazam, genre)
        for track in top_w['data']:
            try:
                serialize_w = Serialize.playlist(data=track)
                print(f'check 1  {serialize_w}')
                have = self.check_track(serialize_w.attributes.artist_name, serialize_w.attributes.name, chart)
                track_info = {
                    "artist": serialize_w.attributes.artist_name,
                    "tname": serialize_w.attributes.name,
                    "have_track": have
                }
                top_list.append(track_info)

            except Exception as e:
                print(str(e), 'error Shazam')
                continue

and error for each track in top_w in Exception print:
1 validation error for PlayList
attributes -> hasCredits
field required (type=value_error.missing)

@EvaBruh EvaBruh changed the title Error Question Error Question (Serialize) Oct 22, 2024
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