我一直得到这个回应
{error:{status:500,message:'Server error . ' }}
当我尝试使用此 endpoints 为我的用户检索所有播放列表时
GET https://api.spotify.com/v1/users//playlist
在我为Spotify web api应用程序开发管道时,我反复做这个测试用例 .
有时它在偏移0处开始时失败 . 有时它在偏移0处成功(并且偏移50,100,150等)并且稍后失败 . 我有大约900个播放列表 .
无论我一次获得20个播放列表还是最多50个播放列表,它都会失败 .
我在响应 Headers 中看不到任何异常 .
这是Spotify结束时的错误吗?我假设因为我获得状态500,这与达到某种请求速率限制或我的请求中的某些错误无关 .
我很感激任何人提供的见解 .
1 回答
来自
/v1/users/{user_id}/playlists/
endpoints 的状态代码500的响应可能由多种原因引起,其中没有一个是您的应用程序's fault. There are cases where a user'的播放列表(或单个播放列表)导致Spotify中的临时问题's backend. This occurs more often if the list of playlists have a lot of revisions, e.g. the user has an unusually large amount of playlists and have removed, added and moved them around a lot. We'正在努力解决此问题但同时我们要求你再试一次 .这与请求中发送的任何查询参数无关,它只是一个间歇性错误 .
如果请求已被限制,Spotify的Web API将返回状态码为429的响应 . 可以在User Guide中找到从Web API返回的状态代码的列表 .