Re: JSON serializable issue

2018-07-07 Thread Luis
Dear Melvyn,
I had a week with this issue. Thanks to you i could to find the problem. I
am working with AWS and it change some names for its instances (+3 or 4
letters). Then it couldnt write to the database. Before, i thinked in this
solution but i was not sure and went for other solution. I change the
length of the column and into the code. It is working very well.
Thanks,
Luis




2018-07-07 4:32 GMT-05:00 Melvyn Sopacua :

> Hi,
>
> > However i am not
> > sure about it and i cannt find where to looking for. I am sending an
> > attachment with the bug. I have many days with it.
> > Thanks for any idea.
>
>
> This looks like you're trying to store an exception in a session, using
> the
> JSON session backend. Since json doesn't know how to serialize an
> exception
> object, it bails out.
>
> The underlying problem is that you're trying to store more then 80 chars
> into
> a field with max lenght 80. Without code, it is impossible to tell how the
> two
> relate.
>
> --
> Melvyn Sopacua
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/Td7D655GLKI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/6363934.dWIXy7cGKv%40fritzbook.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACnFoPpWrsr0xM%2BM07Y1qXb3AzamiNKbyxab-EgdN-2GQUc99g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: JSON serializable issue

2018-07-07 Thread Melvyn Sopacua
Hi,

> However i am not
> sure about it and i cannt find where to looking for. I am sending an
> attachment with the bug. I have many days with it.
> Thanks for any idea.


This looks like you're trying to store an exception in a session, using the 
JSON session backend. Since json doesn't know how to serialize an exception 
object, it bails out.

The underlying problem is that you're trying to store more then 80 chars into 
a field with max lenght 80. Without code, it is impossible to tell how the two 
relate.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6363934.dWIXy7cGKv%40fritzbook.
For more options, visit https://groups.google.com/d/optout.