在 Files 中新建了一个 bucket,上传文件成功了但是有报错
而且也不让下载,传的PDF
而且 Bucket 下统计也不对。还是 0 files at 0 bytes
点击进去倒是可以显示文件名,但是下载也是报错。
PS: 在News Feed中也没有提示
@
livid 项目你应该能看到。
https://workspace.v2ex.com/project/zigbeeplanet/files/* 上传报错 */
POST /project/zigbeeplanet/files/upload/ZigBee%E5%89%8D%E6%9C%9F%E8%B0%83%E7%A0%94 (119.57.31.99)
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/tornado-2.1.1-py2.6.egg/tornado/
web.py", line 954, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/workspace/workspace/
security.py", line 44, in wrapper
return method(self, *args, **kwargs)
File "/www/workspace/workspace/handlers/desktop/project/files/
__init__.py", line 183, in post
db.put_attachment(doc, upload['body'], upload_filename, upload_content_type)
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
client.py", line 638, in put_attachment
}, rev=doc['_rev'])
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
http.py", line 405, in put_json
status, headers, data = self.put(*a, **k)
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
http.py", line 384, in put
return self._request('PUT', path, body=body, headers=headers, **params)
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
http.py", line 419, in _request
credentials=self.credentials)
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
http.py", line 239, in request
resp = _try_request_with_retries(iter(self.retry_delays))
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
http.py", line 205, in _try_request_with_retries
raise e
error: [Errno 104] Connection reset by peer
/* 下载报错 */
GET /file/da1fe94e-feb0-11e0-879c-f23c91df499e/%E6%95%B0%E5%AD%97%E5%8C%96%E4%BA%95%E5%8F%A3%E6%97%A0%E7%BA%BF(ZigBee)%E9%80%9A%E4%BF%A1%E5%89%8D%E6%9C%9F%E8%B0%83%E7%A0%94.pdf (119.57.31.99)
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/tornado-2.1.1-py2.6.egg/tornado/
web.py", line 954, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/www/workspace/workspace/handlers/desktop/project/files/
__init__.py", line 298, in get
a = db.get_attachment(doc, file_name)
File "/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg/couchdb/
client.py", line 599, in get_attachment
id = id_or_doc['_id']
KeyError: '_id'
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/20130
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.