First time here? Check out the FAQ!

Tvartom's profile - activity

2016-12-21 09:26:08 -0500 commented answer Askbot crashing on questions with åäö

No, I'm not suggesting to not cache this, I just told you how I did find out.

2016-12-06 08:02:00 -0500 received badge Self-Learner ( source )
2016-12-06 08:02:00 -0500 received badge Necromancer ( source )
2016-12-06 08:02:00 -0500 received badge Teacher ( source )
2016-12-01 21:22:16 -0500 received badge Editor ( source )
2016-12-01 21:08:51 -0500 answered a question UnicodeEncodeError at /questions/ask/

I believe it the cache! For me it started to work when I disabled Memcached!

You can read my answer to my own quiestion here: http://askbot.org/en/question/14688/a...

2016-12-01 21:02:43 -0500 answered a question Askbot crashing on questions with åäö

Finally I found a solution! The problem is memcached !

Succedded to trace down the problem to

#File:askbot/models/question.py: Line 1678
html = self.get_cached_summary_html(visitor) or self.update_summary_html(visitor)

If I remove the "get_cached" part:

html = self.update_summary_html(visitor)

it work like a charm.

Stopped digging there, and with restored code I and stopped the memcache service, and suddenly everything worked.

2016-12-01 19:46:30 -0500 commented question Askbot crashing on questions with åäö

Thanks for your suggest! I uppgraded to 2.7.12. Still no success! Anyone having any idea? Should I try Python 3.3?

2016-11-16 02:32:27 -0500 received badge Notable Question (source)
2016-08-16 09:19:37 -0500 received badge Popular Question (source)
2016-07-13 02:15:52 -0500 received badge Famous Question (source)
2016-06-30 05:19:59 -0500 received badge Nice Question (source)
2016-06-21 08:04:01 -0500 received badge Student (source)
2016-06-14 06:07:59 -0500 asked a question Askbot crashing on questions with åäö

Hi! Iv'e a clean intstall of Askbot on a CentOS-server with uWsgi. It's behind an Nginx (on an other server). Evrything works fine. Can create users, ask questions etc. Until I put a non ascii-character (Swedish åäö) in the title of a question.

The question is stored properly, And is possible to read on the /question/X/Testfrågan-url. I is also stored correctly in the databas in the askbot_post-table.

But I get a UnicodeDecodeError on /questions/ or /users/X/User for the user who has written the question. The UnicodeDecodeError complains about the title.

The string that could not be encoded/decoded was: estfr��gan<

I have tried with different setting for ALLOW_UNICODE_SLUGS and ASKBOT_TRANSLATE_URL, and droped the database and retried. Database is UTF-8, and so is the DATABASES.TEST_CHARSET, DATABASES.TEST_COLLATION.

What do I do wrong? How can I fix this?

Versions:
CentOS 7.2.1511
Askbot: 0.10.0
Django: 1.8.13
Python: 2.7.5
uWSgi 2.0.13.1
PostgreSQL: 9.3

Traceback:

File "/var/www/askbot/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/www/askbot/lib/python2.7/site-packages/askbot/views/readers.py" in questions
  287.         return render(request, 'main_page.html', template_data)
File "/var/www/askbot/lib/python2.7/site-packages/django/shortcuts.py" in render
  67.             template_name, context, request=request, using=using)
File "/var/www/askbot/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  99.         return template.render(context, request)
File "/var/www/askbot/lib/python2.7/site-packages/askbot/skins/template_backends.py" in render
  86.         return self.template.render(context)
File "/var/www/askbot/lib/python2.7/site-packages/coffin/template/__init__.py" in render
  55.         return super(Template, self).render(**context)
File "/var/www/askbot/lib/python2.7/site-packages/jinja2/environment.py" in render
  989.         return self.environment.handle_exception(exc_info, True)
File "/var/www/askbot/lib/python2.7/site-packages/jinja2/environment.py" in handle_exception
  754.         reraise(exc_type, exc_value, tb)
File "/var/www/askbot/lib/python2.7/site-packages/askbot/templates/main_page.html" in top-level template code
  2. {% import "macros.html" as macros %}
File "/var/www/askbot/lib/python2.7/site-packages/askbot/templates/two_column_body.html" in top-level template code
  1. {% extends "base.html" %}
File "/var/www/askbot/lib/python2.7/site-packages/askbot/templates/base.html" in top-level template code
  46.             {% block body %}
File "/var/www/askbot/lib/python2.7/site-packages/askbot/templates/two_column_body.html" in block "body"
  5.     {% block content%}
File "/var/www/askbot/lib/python2.7/site-packages/askbot/templates/main_page.html" in block "content"
  21.         {% include "main_page/questions_loop.html" %}
File "/var/www/askbot/lib/python2.7/site-packages/askbot/templates/main_page/questions_loop.html" in top-level template code
  6.         {{ thread.get_summary_html(search_state=search_state, visitor = request.user) }}

Exception Type: UnicodeDecodeError at /questions/
Exception Value: 'ascii' codec can't decode byte 0xc3 in position 1064: ordinal not in range(128)