Enabling Askimet is causing exceptions (only when enabled) ...

asked 2017-10-13 22:45:49 -0600

nyceyes gravatar image

updated 2017-10-13 22:46:47 -0600

Hello:

I'm having the same problem as on this post: https://askbot.org/en/question/11102/...

Whenever Askimet is enabled (with a registered, legitimate key), moderated post of a user fails. When is it disabled, then the failure goes away. This makes Askimet un-usable.

Internal Server Error: /question/13/this-is-a-second-test-but-with-askimet-enabled-to-see-of-exception/ 
Traceback (most recent call last): 
File "/home/askbot/.virtualenvs/askbot/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response 
response = wrapped_callback(request, *callback_args, **callback_kwargs) 
File "/home/askbot/.virtualenvs/askbot/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view 
response = view_func(request, *args, **kwargs) 
File "/home/askbot/.virtualenvs/askbot/lib/python2.7/site-packages/askbot-0.10.2-py2.7.egg/askbot/views/readers.py", line 569, in question 
question=question_post, 
File "/home/askbot/.virtualenvs/askbot/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send 
response = receiver(signal=self, sender=sender, **named) 
File "/home/askbot/.virtualenvs/askbot/lib/python2.7/site-packages/askbot-0.10.2-py2.7.egg/askbot/models/__init__.py", line 3771, in record_question_visit 
last_seen = request.session['question_view_times'].get(question.id, None) 
AttributeError: 'NoneType' object has no attribute 'id' 

Request repr(): 
<WSGIRequest 
path:/question/13/this-is-a-second-test-but-with-askimet-enabled-to-see-of-exception/, 
GET:<QueryDict: {}>, 
POST:<QueryDict: {}>, 
COOKIES:{'askbot_visitor': 'False', 
'csrftoken': 'jfEGgfjzz2E2vwbPuA3tfIxlUZrp2pAk', 
'sessionid': '34lfqvupeacescvukgmocg8yd0r1ethv'}, 
META:{'CONTENT_LENGTH': '', 
'CONTENT_TYPE': '', 
u'CSRF_COOKIE': u'jfEGgfjzz2E2vwbPuA3tfIxlUZrp2pAk', 
'DOCUMENT_ROOT': '/home/askbot/ASKBOT', 
'HTTPS': 'on', 
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 
'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br', 
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 
'HTTP_CONNECTION': 'keep-alive', 
'HTTP_COOKIE': 'csrftoken=jfEGgfjzz2E2vwbPuA3tfIxlUZrp2pAk; askbot_visitor=False; sessionid=34lfqvupeacescvukgmocg8yd0r1ethv', 
'HTTP_DNT': '1', 
'HTTP_HOST': 'example.com', 
'HTTP_REFERER': 'https://example.com/questions/', 
'HTTP_UPGRADE_INSECURE_REQUESTS': '1', 
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0', 
'PATH_INFO': u'/question/13/this-is-a-second-test-but-with-askimet-enabled-to-see-of-exception/', 
'QUERY_STRING': '', 
'REMOTE_ADDR': '192.0.2.192', 
'REMOTE_PORT': '32954', 
'REQUEST_METHOD': 'GET', 
'REQUEST_SCHEME': 'https', 
'REQUEST_URI': '/question/13/this-is-a-second-test-but-with-askimet-enabled-to-see-of-exception/', 
u'SCRIPT_NAME': u'', 
'SERVER_NAME': 'example.com', 
'SERVER_PORT': '443', 
'SERVER_PROTOCOL': 'HTTP/1.1', 
'uwsgi.core': 1, 
'uwsgi.node': 'vps.example.com', 
'uwsgi.version': '2.0.15', 
'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f7193c38f60>, 
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 
'wsgi.input': <uwsgi._Input object at 0x7f7191b7ac00>, 
'wsgi.multiprocess': True, 
'wsgi.multithread': True, 
'wsgi.run_once': False, 
'wsgi.url_scheme': 'https', 
'wsgi.version': (1, 0)}> 
ReplyReply AllForwardEdit as new
edit retag flag offensive close merge delete