Hi,

im getting a UnicodeDecodeError in my application.
The strange thing is that it appears on the very first request after a
restart.
Then everything works fine but the error appears sporadic over the
day.
The app runs as fastcgi. Django version is trunk from 01/27/2008
request.session['akt_Firma'] contains a number i.e "1".
Has somebody a hint for me?

Mike


Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/django/core/handlers/
base.py", line 82, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/var/www/xxx/xxxx/rechnung/views.py", line 515, in DocList
    firma=Firma.objects.get(nr=int(request.session['akt_Firma']))

  File "/usr/lib/python2.4/site-packages/django/db/models/manager.py",
line 69, in get
    return self.get_query_set().get(*args, **kwargs)

  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 261, in get
    obj_list = list(clone)

  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 114, in __iter__
    return iter(self._get_data())

  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 483, in _get_data
    self._result_cache = list(self.iterator())

  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 189, in iterator
    cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "")
+ ",".join(select) + sql, params)

  File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line
163, in execute
    self.errorhandler(self, exc, value)

  File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line
35, in defaulterrorhandler
    raise errorclass, errorvalue

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-4:
invalid data
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to