|
我在Django中使用了两个不同的python oauth库来使用twitter进行身份验证。安装是在apache和WSGI上进行的。当我重新启动服务器时,10分钟内一切正常,然后httplib似乎锁住了(请参阅以下错误)。我只运行一个进程和一个线程的WSGI,但这似乎没有什么区别。我不知道为什么它锁住并给出了这个CannotSendRequest错误。我花了很多时间在这个令人沮丧的问题上。如有任何提示/建议,我将不胜感激。
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "mypath/auth/decorators.py", line 9, in decorated
return f(*args, **kwargs)
File "mypath/auth/views.py", line 30, in login
token = get_unauthorized_token()
File "/root/storm/eye/auth/utils.py", line 49, in get_unauthorized_token
return oauth.OAuthToken.from_string(oauth_response(req))
File "mypath/auth/utils.py", line 41, in oauth_response
connection().request(req.http_method, req.to_url())
File "/usr/lib/python2.5/httplib.py", line 866, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.5/httplib.py", line 883, in _send_request
self.putrequest(method, url, **skips)
File "/usr/lib/python2.5/httplib.py", line 770, in putrequest
raise CannotSendRequest()
|
|