Google App Engine 1.4.0 中的 Django-OAuth-Twitter 错误 -- 意外的关键字参数:next_count、prefetch_count、offset
Google 最近将他们的 appengine sdk 更新到了 1.4.0,同时我开始在我的 devbox 和生产中看到异常。这是跟踪:
Exception in request:
Traceback (most recent call last):
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/core/handlers/base.py", line 101, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/django_oauth_twitter/views.py", line 159, in callback
user = self._authenticate(userinfo=userinfo)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/django_oauth_twitter/views.py", line 239, in _authenticate
user = TwitterUser.objects.get(twitter_id=userinfo.id).user
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/query.py", line 334, in get
num = len(clone)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/query.py", line 79, in __len__
self._result_cache = list(self.iterator())
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/query.py", line 267, in iterator
for row in compiler.results_iter():
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/djangoappengine/db/compiler.py", line 96, in results_iter
next_count=75)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1304, in Run
config = _Rpc2Config(_GetConfigFromKwargs(kwargs))
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 169, in _GetConfigFromKwargs
'Unexpected keyword arguments: %s' % ', '.join(args_diff))
DatabaseError: Unexpected keyword arguments: next_count, prefetch_count, offset
我猜测损坏可能与此应用程序引擎更改有关,但不确定如何修复它: https ://gist.github.com/717904
有什么想法吗?
Google recently updated their appengine sdk to 1.4.0, and at the same time I've started seeing exceptions both on my devbox and in production. Here's the trace:
Exception in request:
Traceback (most recent call last):
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/core/handlers/base.py", line 101, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/django_oauth_twitter/views.py", line 159, in callback
user = self._authenticate(userinfo=userinfo)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/django_oauth_twitter/views.py", line 239, in _authenticate
user = TwitterUser.objects.get(twitter_id=userinfo.id).user
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/query.py", line 334, in get
num = len(clone)
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/query.py", line 79, in __len__
self._result_cache = list(self.iterator())
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/django/db/models/query.py", line 267, in iterator
for row in compiler.results_iter():
File "/base/data/home/apps/ezcrd2/10.346707310382875890/common-apps/djangoappengine/db/compiler.py", line 96, in results_iter
next_count=75)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1304, in Run
config = _Rpc2Config(_GetConfigFromKwargs(kwargs))
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 169, in _GetConfigFromKwargs
'Unexpected keyword arguments: %s' % ', '.join(args_diff))
DatabaseError: Unexpected keyword arguments: next_count, prefetch_count, offset
I'm guessing the breakage is likely related to this appengine change, but not sure how to fix it: https://gist.github.com/717904
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊,问题显然是我使用的是旧版本的 django-nonrel 。它与 django-oauth-twitter 无关
Ah, the problem was evidently that I was using an old version of django-nonrel. It had nothing to do with django-oauth-twitter