Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

spotify search function not working

spotify search function not working

Plan

Premium

Country

Netherlands

 

Operating System

Windows 10

 

My Question or Issue

i use the spotipy library to use python to get metadata about albums. i use the searhc function to find the albums but now everytime my script gets at the search it does not continue and it basically freezes. i hae attached a wordfile with a screenshot how it looks. the other functions like artist_albums work fine. it is specifically the search function.

anybody have any idea how to fix this?

Reply
6 Replies

 

Can you please upload your code as a .txt file or copy and paste the text of the failing code into the question. It's difficult to run code from an image.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

here is the text file with the code. did not add my own credentials.

Thank you for providing the code.

I can't find any bugs in your code (it ran for me), so I think it is/was an error on Spotify's end.

Can you check if your code runs at the moment and check if the demo at the bottom of the following page runs for you?

https://developer.spotify.com/documentation/web-api/reference/search

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

i tried it again and it worked this morning but when i tried the search function in a loop the same problem happened after a while. it prints the artist and  album every iteration and it just hanged after a while and after killing the terminal the search gives nothing back again. is there some sort of limit in the amount you can search within a certain time period?

You can read about rate limits here: https://developer.spotify.com/documentation/web-api/concepts/rate-limits

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

hi! were you ever able to solve this? having the same problem 

Suggested posts

Type a product name