我从我的MongoDB中获得了很多记录,在此过程中我遇到了一个错误
File "C:\database\models\mongodb.py", line 228, in __iter__
for result in self.results:
File "C:\Python27\Lib\site-packages\pymongo\cursor.py", line 814, in next
if len(self.__data) or self._refresh():
File "C:\Python27\Lib\site-packages\pymongo\cursor.py", line 776, in _refresh
limit, self.__id))
File "C:\Python27\Lib\site-packages\pymongo\cursor.py", line 720, in __send_message
self.__uuid_subtype)
File "C:\Python27\Lib\site-packages\pymongo\helpers.py", line 99, in _unpack_response
cursor_id)
pymongo.errors.OperationFailure: cursor id '866472135294727793' not valid at server
Exception KeyError: KeyError(38556896,) in <module 'threading' from 'C:\Python27\lib\threading.pyc'> ignored这意味着什么,我该如何修复它。我不知道这是否重要,但当我打开连接时,我确实使用了from gevent import monkey; monkey.patch_all()
发布于 2013-02-21 08:47:35
reference
https://stackoverflow.com/questions/14983970
复制相似问题