1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #221 new

AttributeError: 'HttpResponseServerError' object has no attribute '_is_string'

Sergey Panfilov
created an issue

If error in Resource method is handled by Resource.error_handler, then django.http.HttpResponseServerError is returned (PISTON_DISPLAY_ERRORS = True). It misses _is_string attribute, which causes exception in piston/resource.py, line 183, in call

Comments (8)

  1. bryan baraoidan

    The solution above did not work for me (developing in archlinux 32-bit django 1.4 piston 0.2.3). I was able to resolve the issue making the following changes to resources.py (details in attached patch)

  2. Log in to comment