如何做网站拓扑结构图,荣成市有做网站的吗,软件外包公司怎么样,营销型网站建设定制网站建设我正在使用我自己的instagram api开发一些新程序。 一切都与我工作正常#xff0c;除了以下的用户脚本 我想按照我的用户ID 的名单#xff0c;所以我用这个代码Instagram远程服务器返回一个错误#xff1a;(429)UNKNOWN STATUS CODEforeach (var item in listBox1.Items){We…我正在使用我自己的instagram api开发一些新程序。 一切都与我工作正常除了以下的用户脚本 我想按照我的用户ID 的名单所以我用这个代码Instagram远程服务器返回一个错误(429)UNKNOWN STATUS CODEforeach (var item in listBox1.Items){WebRequest request WebRequest.Create(https://api.instagram.com/v1/users/item/relationship?access_token Common.token2);request.Proxy null;request.Method POST;string postData actionfollow;byte[] byteArray Encoding.UTF8.GetBytes(postData);// Set the ContentType property of the WebRequest.request.ContentType application/x-www-form-urlencoded;// Set the ContentLength property of the WebRequest.request.ContentLength byteArray.Length;// Get the request stream.Stream dataStream request.GetRequestStream();dataStream.Write(byteArray, 0, byteArray.Length);dataStream.Close();WebResponse response request.GetResponse();// Display the status.MessageBox.Show(((HttpWebResponse)response).StatusDescription);dataStream.Close();response.Close();new System.Threading.Thread(GetInfo).Start();Thread.Sleep(TimeSpan.FromSeconds(2));}listBox1.Items.Clear();它遵循前5成功然后将其与The remote server returned an error: (429) UNKNOWN STATUS CODE.0https://en.wikipedia.org/wiki/List_of_HTTP_status_codes 429是“请求太多”。这可以帮助你解决你的问题。 –0你我知道有太多的请求如何解决它 –0现在当我把它设置为睡5秒时它只遵循前17 –