<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>Hi Paul</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>On Sep 25, 2007, at 7:04 PM, Paul Perez wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><FONT size="2"><SPAN style="font-family: courier new,monospace;">Dear List:<BR><BR>I am having a heck of a time trying to figure out why this traceback is happening, and I was hoping that you could shed some light on the situation. I am sorry for bothering you with this simple thing, but I can't seem to figure it out! <BR></SPAN></FONT></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>No need to apologize, however twisted-web is a better list for this question.</DIV><DIV><BR class="khtml-block-placeholder"></DIV>&lt;snip&gt;</DIV><DIV><BR><BLOCKQUOTE type="cite"><FONT size="2"> -----------------------------------------------------------------------------------------------------<BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">2007-09-25 18:38:38-0700 [-] Original exception: </SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">2007-09-25 18:38:38-0700 [-] Unhandled Error</SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">         Traceback (most recent call last):</SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 304, in _startRunCallbacks </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 317, in _runCallbacks </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 281, in _continue </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 277, in unpause </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">        --- &lt;exception caught here&gt; ---</SPAN><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 317, in _runCallbacks</SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\web2\server.py", line 518, in _cbFinishRender</SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">        exceptions.TypeError: html is not a resource or a response</SPAN><BR class="khtml-block-placeholder"></FONT></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>this exception usually indicates that a render method didn't return an IResponse object but instead returned a string (or none.)  The above code did not include anything that implemented IResource.</DIV><DIV><BR><BLOCKQUOTE type="cite"><FONT size="2"><SPAN style="font-family: courier new,monospace;"> 2007-09-25 18:38:39-0700 [-] Unhandled error in Deferred:</SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">2007-09-25 18:38:39-0700 [-] Unhandled Error</SPAN><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">        Traceback (most recent call last):</SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 317, in _runCallbacks </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\web2\server.py", line 476, in _processingFailed </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 200, in addErrback </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 182, in addCallbacks </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">        --- &lt;exception caught here&gt; ---</SPAN><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\internet\defer.py", line 317, in _runCallbacks</SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\web2\server.py", line 492, in _processingReallyFailed</SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"> <SPAN style="font-family: courier new,monospace;">          File "C:\Python24\lib\site-packages\twisted\web2\http.py", line 446, in writeResponse</SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">             self.chanRequest.writeHeaders(response.code, response.headers)</SPAN><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\web2\channel\http.py", line 431, in writeHeaders </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">          File "C:\Projects\PyServer\twisted\web2\channel\http.py", line 466, in _writeHeaders </SPAN><BR style="font-family: courier new,monospace;"><BR style="font-family: courier new,monospace;"><SPAN style="font-family: courier new,monospace;">        exceptions.AttributeError: 'HTTPChannelRequest' object has no attribute 'transport' </SPAN><BR style="font-family: courier new,monospace;"></FONT></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV>This might have something to do with the fact that you're calling writeResponse.<DIV><BR><DIV>You should never call writeResponse directly on a request object.  You should _return_ an IResponse or a deferred which results in an IResponse from an IResource's render method.</DIV></DIV></BODY></HTML>