Funny, I literally just finished debugging the same error.

If you inspect the traceback you should see which dict element wouldn't serialize. Just walk up the traceback stack and inspect the locals. The bottom couple of stack frames will be within the JSON default handler (which generates the ever so helpful exception :P ), but a few frames up you should see a local that contains the name of the dict element that the serializer was processing.

Cheers,
~ol

On 11/6/06, timc3 <[EMAIL PROTECTED]> wrote:

I get a pop-up error saying "internal server error" - which my
_javascript_ is handling and displaying.

The full error in the page returned is:

Exception Type:
TypeError

Exception Value:
t: t... is not JSON serializable

Exception Location:
/usr/lib/python2.4/site-packages/django/utils/simplejson/encoder.py in
default, line 258

Then I get a traceback



--~--~---------~--~----~------------~-------~--~----~
 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