<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1176: unicode_body exception</title>
    <link>http://localhost/ticket/1176</link>
    <description>&lt;p&gt;
We seem to occasionally get this exception on ckan.net.
&lt;/p&gt;
&lt;p&gt;
User agents causing this include:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Alexa ia_archiver (3/6/11)
&lt;/li&gt;&lt;li&gt;Maxthon browser (17/5/11)
&lt;/li&gt;&lt;/ul&gt;&lt;pre class="wiki"&gt;Module ckan.controllers.error:32 in document
&amp;lt;&amp;lt;              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))),
&amp;gt;&amp;gt;  c.content = literal(original_response.unicode_body) or cgi.escape(request.GET.get('message', ''))
AttributeError: 'NoneType' object has no attribute 'unicode_body'
&lt;/pre&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1176</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Wed, 13 Jul 2011 11:50:52 GMT</pubDate>
      <title>status changed; owner, milestone set</title>
      <link>http://localhost/ticket/1176#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1176#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              set to &lt;em&gt;thejimmyg&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                set to &lt;em&gt;ckan-current-sprint&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This is occurring several times a day now - James can you suggest what's happening?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Thu, 25 Aug 2011 11:50:12 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1176#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1176#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This occurs when you browse &lt;tt&gt;/error/document&lt;/tt&gt; directly, rather than being directed there on error. In this case there is no 'original_response'.
&lt;/p&gt;
&lt;p&gt;
Fixed in cset:c67d5934fb0b for ckan 1.4.3 and merged to default.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>