我在尝试使用 put_file 上传文件时得到了这个回溯(来自示例https://www.dropbox.com/developers/start/files#python的源代码)。这个错误是什么意思?处理它的合适方法是什么?
Traceback (most recent call last):
File "testDRBX.py", line 30, in <module>
response = client.put_file('magnum-opus.txt', f)
File "C:\Users\hicom\AppData\Roaming\Python\Python27\site-packages\dropbox\cli
ent.py", line 149, in put_file
return RESTClient.PUT(url, file_obj, headers)
File "C:\Users\hicom\AppData\Roaming\Python\Python27\site-packages\dropbox\res
t.py", line 146, in PUT
return cls.request("PUT", url, body=body, headers=headers, raw_response=raw_
response)
File "C:\Users\hicom\AppData\Roaming\Python\Python27\site-packages\dropbox\res
t.py", line 111, in request
r = conn.getresponse()
File "C:\Python27\lib\httplib.py", line 1027, in getresponse
response.begin()
File "C:\Python27\lib\httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "C:\Python27\lib\httplib.py", line 371, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''