Home > other >  Python POST request error [10060] WinError because the connected party after a period of time there
Python POST request error [10060] WinError because the connected party after a period of time there

Time:11-26

Using python3 POST method in crawl web data, after the issue of the POST request very often quote the following error, occasional success response once or twice:

[10060] WinError because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed,

Code is very simple, it is a words: the response=requests. Post (req_url, headers=headers, data=https://bbs.csdn.net/topics/body)

It should not be IP addresses are target site closed, because on the web page can still access the corresponding POST request,

Mystery, do you have a great god knows what reason be?

CodePudding user response:

Restart the machine??

CodePudding user response:

To solve the no! I like your question! Should be the other server is not stable,
But I have not solved

CodePudding user response:

Continuous request too much, the server may not be able to handle,

CodePudding user response:

To help you use Google search
[10060] WinError because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed,
Find some information:
55 - crawler TimeoutError: [10060] WinError because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed _ystraw - CSDN blog _timeouterror: [10060] WinError because the connected party after a period of time there is no correct answer or even
[10060] WinError because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt fails, _ only very hard, can look effortless - CSDN blog _beautifulsoup WinError 10060]
Loading MNIST error: [10060] WinError because the connected party after a period of time no right answer solutions _ water of blue waves - CSDN blog _connection unexpectedly closed: [10060] WinError a
Scrapy when creating the project: TimeoutError: [10060] WinError because the connected party after a period of time there is no correct answer or connection host reaction, the solution to the connection attempt failed _weixin_42022175 blog blog - CSDN _scrapy connection
after a period of timeTimeoutError: [10060] WinError because the connected party after a period of time there is no right answer or connection host don't respond, open the connection attempt failed, Issue # 138, MicrosoftDocs/visualstudio - docs. Useful - cn

The feeling is:

[10060] WinError because the connected party after a period of time there is no correct answer or connection host response

Surface reasons: is each other server is not responding
Root cause: several possible:
(1) is not on the other server
Have a plenty of this kind of problem, so some need science to get to the Internet to,
You can occasionally even here, the show itself does not exist on this issue,

(2) the firewall problem
You don't look like a

(3) the other party server itself problems
From your occasional success, frequent error
Speculation that is likely to be this reason
Root cause: your request is too frequent too much, not to be able to server processing
How to solve, let the other side server upgrade to improve processing performance is impossible (current), so only: reduce the frequency of your request, perhaps can relieve an error condition and avoid problems,
  • Related