Spotify Web API偶尔收到502错误网关

Spotify Web API偶尔收到502错误网关,spotify,Spotify,有时,在调用https://api.spotify.com/v1/meendpoint,我收到一个502错误网关。这种错误偶尔发生 我将感谢任何帮助。谢谢 代码: PublicProfile=null; 变量url=”https://api.spotify.com/v1/me"; 使用(var wc=new WebClient()) { wc.Headers.Add(“授权”,令牌类型+“”+AccessToken); var response=wc.DownloadString(url); p

有时,在调用
https://api.spotify.com/v1/me
endpoint,我收到一个502错误网关。这种错误偶尔发生

我将感谢任何帮助。谢谢

代码:

PublicProfile=null;
变量url=”https://api.spotify.com/v1/me";
使用(var wc=new WebClient())
{
wc.Headers.Add(“授权”,令牌类型+“”+AccessToken);
var response=wc.DownloadString(url);
profile=JsonConvert.DeserializeObject(响应、设置);
}

我也有同样的问题。大多数情况下,当我发出此请求时,我会得到502:Bad Gateway响应。偶尔我会得到一个实际的回应。我使用Python和rauth库提出这个请求,这让我相信这是Spotify的错误,而不是我们的错误

你到底是如何调用API的?您是否有任何代码?根据文档,您还应该收到一个json paylod,其中包含一条错误消息,有效负载的内容是:坏网关。
PublicProfile profile = null;

var url = "https://api.spotify.com/v1/me";
using (var wc = new WebClient())
{
    wc.Headers.Add("Authorization", TokenType + " " + AccessToken);
    var response = wc.DownloadString(url);
    profile = JsonConvert.DeserializeObject<PublicProfile>(response, settings);
}