On Monday 08 May 2017 09:10:15 rmschne wrote:
> I have a Django setup that has worked for a very long time. Yesterday
> I upgraded from Django 1.10 to 1.11.1 and am getting the error:
>
> raise DjangoUnicodeDecodeError(s, *e.args)
> django.utils.encoding.DjangoUnicodeDecodeErrorJón
>
> : 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in
>
> range(128).
I'm sorry - but this isn't your real error.
You will see it in your WSGI daemon logs once you set DEBUG to false.
This error is caused by Django trying to print the error using ascii codec for the debug output (I haven't chased it down any further and I should really report it).
As said, your real error is somewhere else and that will probably make more sense.
--
Melvyn Sopacua
I'm sorry - but this isn't your real error.
You will see it in your WSGI daemon logs once you set DEBUG to false.
This error is caused by Django trying to print the error using ascii codec for the debug output (I haven't chased it down any further and I should really report it).
As said, your real error is somewhere else and that will probably make more sense.
--
Melvyn Sopacua
On May 9, 2017 11:42 AM, Melvyn Sopacua <m.r.s...@gmail.com> wrote:
> I'm sorry - but this isn't your real error.
Your error is in another castle?
On Tuesday 09 May 2017 06:00:31 rmschne wrote:
> > I'm sorry - but this isn't your real error.
> >
> > You will see it in your WSGI daemon logs once you set DEBUG to
> > false.
> >
> >
> >
> > This error is caused by Django trying to print the error using ascii
> > codec for the debug output (I haven't chased it down any further
> > and I should really report it).
> >
> >
> >
> > As said, your real error is somewhere else and that will probably
> > make more sense.
> >
> >
> >
> >
> > Melvyn Sopacua
>
> Melvyn,
>
> Thanks. I understand what you are saying. Obvious, but I didn't notice
> that. However, I do think it's a Django bug. This app is not running
> on a web server so there is no WSGI daemon.
Ah yes! That triggers a memory. Since `python manage.py runserver` runs on terminal the codec is set to ascii (even when using a UTF-8 locale). So set debug to false and see what comes up in the console.
Another way is to temporarily change the data to ascii. It should then still yield an error and that is your real one.
> Do you have a suggestion
> on what I can do to get a better detection of the error to enable
> reporting it?
Since runserver crashes, your options are limited. You could maybe construct a test case using django.test.Client and see what is triggered.
--
Melvyn Sopacua