日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

服务器如何返回429状态,Instagram远程服务器返回一个错误:(429)UNKNOWN STATUS CODE...

發布時間:2023/12/1 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 服务器如何返回429状态,Instagram远程服务器返回一个错误:(429)UNKNOWN STATUS CODE... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我正在使用我自己的instagram api開發一些新程序。 一切都與我工作正常,除了以下的用戶腳本 我想按照我的用戶ID 的名單,所以我用這個代碼Instagram遠程服務器返回一個錯誤:(429)UNKNOWN STATUS CODE

foreach (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 = "action=follow";

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.

+0

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes 429是“請求太多”。這可以幫助你解決你的問題。 –

+0

你我知道有太多的請求如何解決它? –

+0

現在,當我把它設置為睡5秒時,它只遵循前17 –

總結

以上是生活随笔為你收集整理的服务器如何返回429状态,Instagram远程服务器返回一个错误:(429)UNKNOWN STATUS CODE...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。