upyun / python-sdk

UPYUN Python SDK
117 stars 29 forks source link

正常初始化,一直报错need bucket name #36

Closed mutoulbj closed 8 years ago

mutoulbj commented 8 years ago

按照教程进行初始化:

up = upyun.UpYun('bucket','username','password',None,timeout=30,endpoint=upyun.ED_AUTO)
up.put('/test.txt', 'sdasdafsdafsdfasdfasd\n')

一直报如下错误:

raise UpYunServiceException(request_id, status, msg, err)
UpYunServiceException: ('fd4de16bc44ef869098584ce40485760', 400, 'Bad Request', u'{"msg":"need bucket name","code":40000003,"id":"fd4de16bc44ef869098584ce40485760"}')

bucket名称以及传入,却一直报错。

huangnauh commented 8 years ago

bucket名称有非法字符? (支持数字,横杆和英文字符的组合)

mutoulbj commented 8 years ago

@huangnauh 我确实有写点号".",所以这是非法的是吧?

huangnauh commented 8 years ago

对的, 不支持"." 在官网上创建服务, 填写服务名称时, 会提醒你的