HTTPSConnectionPool(host='xxxxx', port=443): Max retries exceeded with url:xxxxxxxx (Caused by NewConnectionError('<urllib3.connect,Max retries exceeded with ,(Caused by NewConnectionError
2017-04-27 15:12
701 查看
HTTPSConnectionPool(host='f6ws-sha8re-o88k.s3.ama66zaws.com', port=443): Max retries exceeded with url: /uploads/website/auctions/items/full/3076380_1.jpg (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000000003C5F3C8>: Failed to establish a new connection: [Errno 10060] ',))
http连接太多没有关闭导致的。
1、增加重试连接次数
requests.adapters.DEFAULT_RETRIES = 5
2、关闭多余的连接
s = requests.session()
s.keep_alive = False
3、升级requests
pip install --upgrade requests
相关文章推荐
- Python使用post请求时遇到.ConnectionError: HTTPConnectionPool Max retries exceeded with url: Failed to esta
- Python requests“Max retries exceeded with url” error
- Max retries exceeded with url 错误
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- python 爬虫‘Max retries exceeded with url’错误
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- Python爬取知乎回答信息碰到:Max retries exceeded with URL
- Max retries exceeded with url
- 解决Max retries exceeded with url的问题
- Max retries exceeded with url
- urllib2.URLError: <urlopen error [Errno 104] Connection reset by peer>
- 数据处理后的缓存清除问题:Max retries exceeded with url
- Max retries exceeded with url
- Requests 之Max retries exceeded with url[Errno 10054]错误新解
- urllib2.URLError: <urlopen error unknown url type: https>
- Connection reset,Connection reset by peer,Software caused connection abort :socket write error
- python 爬虫 <class 'socket.error'>: [Errno 104] Connection reset by peer)
- 运行 python 脚本错误:urllib2.URLErroe:<urlopen error unknown url type : https>
- Error while performing database login with the sqljdbc driver:Unable to create connection. Check your URL.