jwilsson / spotify-web-api-php

A PHP wrapper for Spotify's Web API.
MIT License
862 stars 156 forks source link

Audio Analysis not Working #190

Closed MadalenaSousa closed 4 years ago

MadalenaSousa commented 4 years ago

Hi! I was trying to use the getAudioAnalysis feature and soometimes it works and sometimes I get this error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: analysis not found in ..\vendor\jwilsson\spotify-web-api-php\src\Request.php:45

I don't understand why it sometimes works and sometimes it doesn't. But this has been happening more and more frequently.What can I do? Any sugestions on what I might be doing wrong?

Here is the full error: Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: analysis not found in ..\vendor\jwilsson\spotify-web-api-php\src\Request.php:45 Stack trace: #0 ..\vendor\jwilsson\spotify-web-api-php\src\Request.php(254): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404) #1..\vendor\jwilsson\spotify-web-api-php\src\Request.php(126): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array) #2 ..I\vendor\jwilsson\spotify-web-api-php\src\SpotifyWebAPI.php(76): SpotifyWebAPI\Request->api('GET', '/v1/audio-analy...', Array, Array) #3 ..\vendor\jwilsson\spotify-web-api-php\src\SpotifyWebAPI.php(713): SpotifyWebAPI\SpotifyWebAPI->sendRequest('GET', '/v1/audio-analy...') #4 ..\php\getTracksInfo.php(24): SpotifyWebAPI\SpotifyWebAPI->getAudioAnalysis('4Y6GIje3GErVRIq...') #5 {main} thrown in ..\vendor\jwilsson\spotify-web-api-php\src\Request.php on line 45

jwilsson commented 4 years ago

Hey! It seems like this is an issue on Spotify's end, https://github.com/spotify/web-api/issues/1570.

MadalenaSousa commented 4 years ago

Hum, ok, thank you!