Django fails to show non-latin exception messages from PostgreSQL running on FastCGI
|Reported by:||Loststylus||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Run django via FastCGI (used nginx 0.6.x to deploy) with PosgreSQL. Try to execute some query, that will produce an error. If the error returned by PosgreSQL is not latin (Russian in my case), django tries to render an error page, but fails. nginx return a page with "Unhandled exception"
If you turn on debug in flup, you will see the traceback, that shows that django tries to force_unicode the error message and fails with UnicodeDecodeError, so the user cannot determine the problem.
I'll attach a flup error page with stack trace.
Change History (10)
Changed 6 years ago by Loststylus
comment:1 Changed 6 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Summary changed from Django fails to show non-latin exception messages from PosgreSQL running on FastCGI to Django fails to show non-latin exception messages from PostgreSQL running on FastCGI