Folks,

I had a heckuva time this afternoon debugging this code:

   # request.extension == 'json'
   location = URL(...)
   return dict(location=location)

I get getting HTTP 405 errors. It turns out that generic.json uses a try/except block and thows an HTTP 405 error on any exception. The real error is that location is not serializable but OY VEY that was tough to figure out. (All I had to do was convert location to a string and all was well.) Is there some debugging fu that I am missing?

    -- Art Z.

--

Art Zemon, President
Hen's Teeth Network <http://www.hens-teeth.net/>
The source of reliable, secure e-commerce web hosting <http://www.hens-teeth.net/html/hosting/ecommerce_hosting.php>
Phone: (866)HENS-NET or (636)447-3030 ext. 200

Reply via email to