>>> ret, info = put_file(token, key, localfile)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/debian8/anaconda3/lib/python3.6/site-packages/qiniu/services/storage/uploader.py", line 62, in put_file
modify_time=(int)(os.path.getmtime(file_path)))
File "/home/debian8/anaconda3/lib/python3.6/site-packages/qiniu/services/storage/uploader.py", line 108, in put_stream
return task.upload()
File "/home/debian8/anaconda3/lib/python3.6/site-packages/qiniu/services/storage/uploader.py", line 174, in upload
host = config.get_default('default_zone').get_up_host_by_token(self.up_token)
File "/home/debian8/anaconda3/lib/python3.6/site-packages/qiniu/zone.py", line 31, in get_up_host_by_token
up_hosts = self.get_up_host(ak, bucket)
File "/home/debian8/anaconda3/lib/python3.6/site-packages/qiniu/zone.py", line 50, in get_up_host
bucket_hosts = self.get_bucket_hosts(ak, bucket)
File "/home/debian8/anaconda3/lib/python3.6/site-packages/qiniu/zone.py", line 78, in get_bucket_hosts
scheme_hosts = hosts[self.scheme]
KeyError: 'http'
核对下 ak sk 是否正确,和 bucket 是否同属一个账号