我密切关注this教程,这很棒。 直到今天一切都运行良好,当我在github上登录时出现此错误:
public Form1()
{
InitializeComponent();
Bw1= = new BackgroundWorker();
Bw2= = new BackgroundWorker();
Bw3= = new BackgroundWorker();
Bw1.DoWork += new DoWorkEventHandler(Bw1_DoWork);
Bw1.ProgressChanged += new ProgressChangedEventHandler
(Bw1_ProgressChanged);
Bw1.RunWorkerCompleted += new RunWorkerCompletedEventHandler
(Bw1_RunWorkerCompleted);
Bw1.WorkerReportsProgress = true;
Bw1.WorkerSupportsCancellation = true;
...
Bw3.DoWork += new DoWorkEventHandler(Bw3_DoWork);
Bw3.ProgressChanged += new ProgressChangedEventHandler
(Bw3_ProgressChanged);
Bw3.RunWorkerCompleted += new RunWorkerCompletedEventHandler
(Bw3_RunWorkerCompleted);
Bw3.WorkerReportsProgress = true;
Bw3.WorkerSupportsCancellation = true;
}
private void btnStartAsyncOperation_Click(object sender, EventArgs e)
{
btnStartAsyncOperation.Enabled = false;
btnCancel.Enabled = true;
// Kickoff the worker thread to begin its DoWork function.
BW1.RunWorkerAsync();
}
//THE DO WORK PART
//UPDATE UI
//tHEN
void BW1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
STOP BW1;
BW2.RUN();
}
...
//Until BW 3 completes and here this should stop until next click
我想念什么/我可以改变什么?
答案 0 :(得分:0)
我目前正在开发一个使用社交网络登录的网站。 一切正常(谷歌,Facebook和Twitter),但不是github :经过一些尝试,我现在得到了403。
Django中的问题是403错误不显示错误附带的HTML内容!
我必须在Debug模式下运行,并在文件中添加一个断点
/usr/local/lib/python3.7/site-packages/requests/models.py
第940行/代码为raise HTTPError(http_error_msg, response=self)
检查变量self.content.decode("utf-8")
告诉我,我受到了限制(出于无逻辑的原因-更奇怪的是,在同一台PC上但在Windows下,相同的代码就像一个超级字符一样起作用)。
我希望github的技术团队能够解释出了什么问题...