-
Type:
Task
-
Resolution: Cannot Reproduce
-
Priority:
Blocker - P1
-
None
-
Affects Version/s: 2.5.2
-
Component/s: None
-
None
-
Environment:debian py27
-
None
-
None
-
None
-
None
-
None
-
None
-
None
[Jun 29 17:05:04] Internal Server Error: /
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/home/sites/python/project/newsblur/utils/view_functions.py", line 32, in wrapper
output = func(request, *args, **kw)
File "/home/sites/python/project/newsblur/apps/reader/views.py", line 72, in index
return welcome(request, **kwargs)
File "/home/sites/python/project/newsblur/apps/reader/views.py", line 113, in welcome
statistics = MStatistics.all()
File "/home/sites/python/project/newsblur/apps/statistics/models.py", line 41, in all
values = dict([(stat.key, stat.value) for stat in stats])
File "/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/queryset.py", line 164, in _iter_results
self._populate_cache()
File "/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/queryset.py", line 174, in _populate_cache
self._result_cache.append(self.next())
File "/usr/local/lib/python2.7/dist-packages/mongoengine/queryset/queryset.py", line 1163, in next
doc = self._document._from_son(raw_doc)
File "/usr/local/lib/python2.7/dist-packages/mongoengine/base/document.py", line 562, in _from_son
else field.to_python(value))
File "/usr/local/lib/python2.7/dist-packages/mongoengine/base/fields.py", line 399, in to_python
value = ObjectId(value)
File "/usr/local/lib/python2.7/dist-packages/bson/objectid.py", line 90, in _init_
self.__validate(oid)
File "/usr/local/lib/python2.7/dist-packages/bson/objectid.py", line 198, in __validate
text_type._name_, type(oid)))
TypeError: id must be an instance of (str, unicode, ObjectId), not <class 'bson.objectid.ObjectId'>
When I run NewsBlur , it throw this error........I could not find the reason...please help