AkismetError at /questions/ask/
I have succesfully installed Askbot on my VPS. I was asking the first question. After entering the details when I clicked on "Ask your question". I got the below error regarding Akismet. I don't know why I'm getting this. In Site Settings
I have enabled Akismet with the key.
Note: If I disable Akismet it works fine.
AkismetError at /questions/ask/
missing required argument.
Request Method: POST
Request URL: http://78.**.**.**:****/questions/ask/
Django Version: 1.4.5
Exception Type: AkismetError
Exception Value:
missing required argument.
Exception Location: /usr/local/lib/python2.7/dist-packages/akismet-0.2.0-py2.7.egg/akismet.py in comment_check, line 330
Python Executable: /usr/bin/python
Python Version: 2.7.3
Traceback
Environment:
Request Method: POST
Request URL: http://78.**.**.**:****/questions/ask/
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('longerusername',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.humanize',
'django.contrib.sitemaps',
'django.contrib.messages',
'compressor',
'askbot',
'askbot.deps.django_authopenid',
'south',
'askbot.deps.livesettings',
'keyedcache',
'robots',
'django_countries',
'djcelery',
'djkombu',
'followit',
'tinymce',
'group_messaging')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.ForumModeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware')
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
91. response = view_func(request, *args, **kwargs)
File "/sfc/sfc/askbot/utils/decorators.py" in wrapper
136. return view_func(request, *args, **kwargs)
File "/sfc/sfc/askbot/utils/decorators.py" in wrapper
212. if api.comment_check(comment, data, build_data=False):
File "/usr/local/lib/python2.7/dist-packages/akismet-0.2.0-py2.7.egg/akismet.py" in comment_check
330. raise AkismetError('missing required argument.')
Exception Type: AkismetError at /questions/ask/
Exception Value: missing required argument.
AND
/usr/local/lib/python2.7/dist-packages/akismet-0.2.0-py2.7.egg/akismet.py in comment_check
raise AkismetError('missing required argument.')
comment
'This is a test question posted by anonymous.'
build_data
False
url
u'http://f6cdabd27a9a.rest.akismet.com/1.1/comment-check'
resp
'blog value must be a fully qualified url. example: <code>http://example.com/</code>'
headers
{'User-Agent': 'Askbot/0.7.48 | akismet.py/0.2.0'}
DEBUG
False
data
{'blog': ':///questions/',
'comment_author': 'chankey',
'comment_author_email': u'chankey007@gmail.com',
'user_agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36 AlexaToolbar/alxg-3.1',
'user_ip': '115.252.211.182'}
self
<akismet.Akismet object at 0x99825ec>
Error in askbot.log
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py TIME: 2013-06-28 05:53:35,094 MSG: base.py:handle_uncaught_exception:215 Internal Server Error: /questions/ask/
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response ...
Comments
@Evgeny: Please have a look, I'm unable to resolve this.
@pajju: Can you help me with this?
I can't help you much here. I'm not sure how akismet is integrated to work with askbot.
If you see your error log:
From my understanding, akismet checks every new post/comment by passing comment data + user-request information to comment_check
AkismetError: missing required argument.
I think you need to debug this yourself. And If you find a fix for this issue, do update this post. ;)