Ticket #1176 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

unicode_body exception

Reported by: dread Owned by: thejimmyg
Priority: trivial Milestone: ckan-sprint-2011-10-28
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none


We seem to occasionally get this exception on ckan.net.

User agents causing this include:

  • Alexa ia_archiver (3/6/11)
  • Maxthon browser (17/5/11)
Module ckan.controllers.error:32 in document
<<              return original_response.body
               # Otherwise, decorate original response with error template.
               c.content = literal(original_response.unicode_body) or cgi.escape(request.GET.get('message', ''))
               c.prefix=request.environ.get('SCRIPT_NAME', ''),
               c.code=cgi.escape(request.GET.get('code', str(original_response.status_int))),
>>  c.content = literal(original_response.unicode_body) or cgi.escape(request.GET.get('message', ''))
AttributeError: 'NoneType' object has no attribute 'unicode_body'

Change History

comment:1 Changed 3 years ago by dread

  • Owner set to thejimmyg
  • Status changed from new to assigned
  • Milestone set to ckan-current-sprint

This is occurring several times a day now - James can you suggest what's happening?

comment:2 Changed 3 years ago by dread

  • Status changed from assigned to closed
  • Resolution set to fixed

This occurs when you browse /error/document directly, rather than being directed there on error. In this case there is no 'original_response'.

Fixed in cset:c67d5934fb0b for ckan 1.4.3 and merged to default.

Note: See TracTickets for help on using tickets.