First time here? Check out the FAQ!

Revision history  [back]

Error when mark tag as Ignored/Interesting

I using "tag-editor" branch.


Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
    resp = view_func(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
    return view_func(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/utils/decorators.py", line 77, in wrapper
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/utils/decorators.py", line 41, in wrap
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/views/commands.py", line 431, in mark_tag
    reason = post_data['reason']

KeyError: 'reason'


,
POST:,
COOKIES:{'__utma': '108398098.1863074581.1342614625.1342619234.1342628017.3',
 '__utmb': '108398098.94.10.1342628017',
 '__utmc': '108398098',
 '__utmz': '108398098.1342614625.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
 'ask.alterdata.com.br_csrf': '1e2796b56ac5afc33cc2e5e80f4da230',
 'askbot_visitor': 'False',
 'sessionid': 'e65048a8ceccfcd3b8e3ab4ce1ba96e7'},
META:{'CONTENT_LENGTH': '21',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'DOCUMENT_ROOT': '/var/www/ask',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/json, text/javascript, */*; q=0.01',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_LANGUAGE': 'pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4',
 'HTTP_CACHE_CONTROL': 'no-cache',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_COOKIE': 'askbot_visitor=False; sessionid=e65048a8ceccfcd3b8e3ab4ce1ba96e7; ask.alterdata.com.br_csrf=1e2796b56ac5afc33cc2e5e80f4da230; __utma=108398098.1863074581.1342614625.1342619234.1342628017.3; __utmb=108398098.94.10.1342628017; __utmc=108398098; __utmz=108398098.1342614625.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
 'HTTP_HOST': 'ask.alterdata.matriz',
 'HTTP_ORIGIN': 'http://ask.alterdata.matriz',
 'HTTP_PRAGMA': 'no-cache',
 'HTTP_REFERER': 'http://ask.alterdata.matriz/perguntas/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11',
 'HTTP_VIA': '1.1 NT00',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH_INFO': u'/mark-tag/ignored/',
 'PATH_TRANSLATED': '/var/www/ask/apache/django.wsgi/mark-tag/ignored/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.0.0.10',
 'REMOTE_PORT': '44961',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/mark-tag/ignored/',
 'SCRIPT_FILENAME': '/var/www/ask/apache/django.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '10.0.5.106',
 'SERVER_ADMIN': '[no address given]',
 'SERVER_NAME': 'ask.alterdata.matriz',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '
Apache/2.2.22 (Ubuntu) Server at ask.alterdata.matriz Port 80
\n', 'SERVER_SOFTWARE': 'Apache/2.2.22 (Ubuntu)', 'mod_wsgi.application_group': 'ask.alterdata.matriz|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 3), 'wsgi.errors': , 'wsgi.file_wrapper': , 'wsgi.input': , 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>

Error when mark tag as Ignored/Interesting

I using "tag-editor" branch.


Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
    resp = view_func(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
    return view_func(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/utils/decorators.py", line 77, in wrapper
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/utils/decorators.py", line 41, in wrap
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.43-py2.7.egg/askbot/views/commands.py", line 431, in mark_tag
    reason = post_data['reason']

KeyError: 'reason'


,
POST:,
COOKIES:{'__utma': '108398098.1863074581.1342614625.1342619234.1342628017.3',
 '__utmb': '108398098.94.10.1342628017',
 '__utmc': '108398098',
 '__utmz': '108398098.1342614625.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
 'ask.alterdata.com.br_csrf': '1e2796b56ac5afc33cc2e5e80f4da230',
 'askbot_visitor': 'False',
 'sessionid': 'e65048a8ceccfcd3b8e3ab4ce1ba96e7'},
META:{'CONTENT_LENGTH': '21',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'DOCUMENT_ROOT': '/var/www/ask',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/json, text/javascript, */*; q=0.01',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_LANGUAGE': 'pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4',
 'HTTP_CACHE_CONTROL': 'no-cache',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_COOKIE': 'askbot_visitor=False; sessionid=e65048a8ceccfcd3b8e3ab4ce1ba96e7; ask.alterdata.com.br_csrf=1e2796b56ac5afc33cc2e5e80f4da230; __utma=108398098.1863074581.1342614625.1342619234.1342628017.3; __utmb=108398098.94.10.1342628017; __utmc=108398098; __utmz=108398098.1342614625.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)',
 'HTTP_HOST': 'ask.alterdata.matriz',
 'HTTP_ORIGIN': 'http://ask.alterdata.matriz',
 'HTTP_PRAGMA': 'no-cache',
 'HTTP_REFERER': 'http://ask.alterdata.matriz/perguntas/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11',
 'HTTP_VIA': '1.1 NT00',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH_INFO': u'/mark-tag/ignored/',
 'PATH_TRANSLATED': '/var/www/ask/apache/django.wsgi/mark-tag/ignored/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.0.0.10',
 'REMOTE_PORT': '44961',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/mark-tag/ignored/',
 'SCRIPT_FILENAME': '/var/www/ask/apache/django.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '10.0.5.106',
 'SERVER_ADMIN': '[no address given]',
 'SERVER_NAME': 'ask.alterdata.matriz',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '
Apache/2.2.22 (Ubuntu) Server at ask.alterdata.matriz Port 80
\n', 'SERVER_SOFTWARE': 'Apache/2.2.22 (Ubuntu)', 'mod_wsgi.application_group': 'ask.alterdata.matriz|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 3), 'wsgi.errors': , 'wsgi.file_wrapper': , 'wsgi.input': , 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>