Anand Kumria
unread,Oct 24, 2011, 5:45:55 AM10/24/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reCAPTCHA
Hi,
I am using the Python interface to recaptcha and am experiencing
timeout issues:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Django-1.2.7-py2.6.egg/django/
core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.6/site-packages/Django-1.2.7-py2.6.egg/django/
utils/decorators.py", line 76, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/Django-1.2.7-py2.6.egg/django/
views/decorators/http.py", line 36, in inner
return func(request, *args, **kwargs)
File "redacted/views.py", line 86, in post_comment
res = captcha.submit(challenge, response,
settings.RECAPTCHA_PRIVATE, request.META['REMOTE_ADDR'])
File "redacted/recaptcha/client/captcha.py", line 84, in submit
httpresp = urllib2.urlopen (request)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 1161, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1136, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 110] Connection timed out>
What is the best way to mitigate against this.
Is anyone else experiencing this?
Regards,
Anand