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

shazamio.exceptions.FailedDecodeJson: Failed to decode json #104

Closed
cc00010 opened this issue Apr 24, 2024 · 2 comments
Closed

shazamio.exceptions.FailedDecodeJson: Failed to decode json #104

cc00010 opened this issue Apr 24, 2024 · 2 comments

Comments

@cc00010
Copy link

cc00010 commented Apr 24, 2024

Hello, I can't use shazamio methods, it says:

aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://www.shazam.com/shazam/v3/en-US/GB/web/-/tracks/ip-country-chart-UZ?pageSize=20&startFrom=0')

Code:
shazam.top_country_tracks("US", offset=0, limit=2)

@dotX12
Copy link
Collaborator

dotX12 commented Apr 25, 2024

I’m not even surprised how at the same time this function stopped working in all rapidapi, which present a wrapper for Shazam and charge money for it (after all, they just use this project): DDD

I’m in the process of fixing it, there’s a lot of stuff at my main job, I’ll try to fix it by evening, I already understand how it can be done.

@dotX12
Copy link
Collaborator

dotX12 commented Apr 27, 2024

Congratulations to all developers and separately developers for RapidAPI, the fix has been added.
Thx @cc00010!

Version 0.6.0 released.
https://pypi.org/project/shazamio/0.6.0/

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

2 participants