python怎么连接远程服务器没有按时响应_python请求http.client.remotedisconnected:远程端已关闭连接,但没有响应:。(...

Traceback (most recent call last):

File "/Users/kozo4/Library/Python/3.6/lib/python/site-packages/urllib3/connectionpool.py", line 600, in urlopen

chunked=chunked)

File "/Users/kozo4/Library/Python/3.6/lib/python/site-packages/urllib3/connectionpool.py", line 386, in _make_request

six.raise_from(e, None)

File "", line 2, in raise_from

File "/Users/kozo4/Library/Python/3.6/lib/python/site-packages/urllib3/connectionpool.py", line 382, in _make_request

httplib_response = conn.getresponse()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse

response.begin()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin

version, status, reason = self._read_status()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 266, in _read_status

raise RemoteDisconnected("Remote end closed connection without"

http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/kozo4/Library/Python/3.6/lib/python/site-packages/requests/adapters.py", line 440, in send

timeout=timeout

File "/Users/kozo4/Library/Python/3.6/lib/python/site-packages/urllib3/connectionpool.py", line 649, in urlopen

_stacktrace=sys.exc_info()[2])

File "/Users/kozo4/Library/Python/3.6/lib/python/site-packages/urllib3/util/retry.py", line 388, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9090): Max retries exceeded with url: http://js2.a.yximgs.com/ufile/atlas/NzgwOTQwMTJfMTQzNzA4ODk0OTY=_1.webp (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))

During handling of the above exception, another exception occurred:

我不知道这是什么:(

这是一个蟒蛇爬虫。我获取json数据,然后将其缓存在本地,但为什么在请求时报告此错误(通常是.webp或.mp4文件)?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值