bucket.upload_part时偶尔会抛出以下异常:
Exception in thread Thread-43:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in bootstrap_inner
self.run()
File "/usr/lib64/python2.6/threading.py", line 484, in run
self.target(self.__args, *self.__kwargs)
File "ali_concurrence.py", line 43, in do_upload
result = self.bucket.upload_part(self.key, self.upload_id, self.part_number, SizedFileAdapter(self.fileobj, self.num_to_upload))
File "/usr/lib/python2.6/site-packages/oss2-2.1.1-py2.6.egg/oss2/api.py", line 589, in upload_part
data=data)
File "/usr/lib/python2.6/site-packages/oss2-2.1.1-py2.6.egg/oss2/api.py", line 863, in __do_object
return self._do(method, self.bucket_name, key, **kwargs)
File "/usr/lib/python2.6/site-packages/oss2-2.1.1-py2.6.egg/oss2/api.py", line 146, in _do
resp = self.session.do_request(req, timeout=self.timeout)
File "/usr/lib/python2.6/site-packages/oss2-2.1.1-py2.6.egg/oss2/http.py", line 44, in do_request
raise RequestError(e)
RequestError: {'status': -2, 'details': "RequestError: ('Connection aborted.', timeout('timed out',))"}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。