Top Play component is unable to fetch artist details in line no 112
Closed this issue · 6 comments
I figured it out. It's not because there are any issues with the code, but rather the API is prolly up to its limit. Only 500 songs per month hard limits. Also nice github portfolio.
I figured it out. It's not because there are any issues with the code, but rather the API is prolly up to its limit. Only 500 songs per month hard limits. Also nice github portfolio.
I don't believe this is the issue. I am experiencing the same issue as in the screenshot above and just checked my RapidAPI analytics dashboard. I have only made 101 API calls in the last 30 days. Still looking for a solution.
I figured it out. By console logging the topPlays array, I was able to see that ShazamAPI modified their structure. So, to fix the topPlays error you need to do the following steps. I really hope this helps! I'm still testing but am at least able to get my page back to play songs.
-
Navigate to topPlays and console log the topPlays array. If you notice in the screenshot below, another "0" is now added to the array structure.
-
This causes the need to update the code in the screenshot below, and anywhere else with this code structure in TopPlays. Keep refreshing the page and the console log will tell you the lines that you need to update.
I figured it out. It's not because there are any issues with the code, but rather the API is prolly up to its limit. Only 500 songs per month hard limits. Also nice github portfolio.
Thanks for the Appreciation 😁. And yes the solution proposed by @TallestStatue23 does work.
I figured it out. By console logging the topPlays array, I was able to see that ShazamAPI modified their structure. So, to fix the topPlays error you need to do the following steps. I really hope this helps! I'm still testing but am at least able to get my page back to play songs.
- Update base URL and sub endpoint queries in ShazamCoreAPI
- Navigate to topPlays and console log the topPlays array. If you notice in the screenshot below, another "0" is now added to the array structure.
- This causes the need to update the code in the screenshot below, and anywhere else with this code structure in TopPlays. Keep refreshing the page and the console log will tell you the lines that you need to update.
Thanks this helps to save the trouble and thanks for the solution