提示信息
==============================
put bucket test2011-nov-0910-49-58 OK
==============================
bucket list size is: 3
bucket list is:
(u'test2011-nov-0910-41-07', u'2011-11-09T02:41:25.000Z')
(u'test2011-nov-0910-49-49', u'2011-11-09T02:50:07.000Z')
(u'test2011-nov-0910-49-58', u'2011-11-09T02:50:16.000Z')
==============================
Traceback (most recent call last):
File "C:\Users\mshu\Downloads\阿里云\OSS_Python_API\oss\oss_sample.py", line 60, in <module>
res = oss.put_object_from_string(bucket, object, input_content, content_type, headers)
File "C:\Users\mshu\Downloads\阿里云\OSS_Python_API\oss\oss_api.py", line 337, in put_object_from_string
res = self.put_object_from_fp(bucket, object, fp, content_type, headers)
File "C:\Users\mshu\Downloads\阿里云\OSS_Python_API\oss\oss_api.py", line 447, in put_object_from_fp
conn = self._open_conn_to_put_object(bucket, object, filesize, content_type, headers)
File "C:\Users\mshu\Downloads\阿里云\OSS_Python_API\oss\oss_api.py", line 385, in _open_conn_to_put_object
conn.putheader(k, headers[k])
File "C:\Python27\lib\httplib.py", line 924, in putheader
str = '%s: %s' % (header, '\r\n\t'.join(values))
TypeError: sequence item 0: expected string, int found
如何解决?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。