Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body bgcolor="#f0f0f8">
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
- <tr bgcolor="#6622aa">
- <td valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><type 'exceptions.KeyError'></strong></big></big></font></td
- ><td align=right valign=bottom
- ><font color="#ffffff" face="helvetica, arial">Python 2.7.3: /usr/bin/python2.7<br>Mon Sep 10 18:08:46 2012</font></td></tr></table>
- <p>A problem occurred in a Python script. Here is the sequence of
- function calls leading up to the error, in the order they occurred.</p>
- <table width="100%" cellspacing=0 cellpadding=0 border=0>
- <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/pymodules/python2.7/flup/server/fcgi_base.py">/usr/lib/pymodules/python2.7/flup/server/fcgi_base.py</a> in <strong>run</strong>(self=<flup.server.fcgi_base.Request object>)</td></tr>
- <tr><td><font color="#909090"><tt> <small> 556</small> """Runs the handler, flushes the streams, and ends the request."""<br>
- </tt></font></td></tr>
- <tr><td><font color="#909090"><tt> <small> 557</small> try:<br>
- </tt></font></td></tr>
- <tr><td bgcolor="#ffccee"><tt>=><small> 558</small> protocolStatus, appStatus = self.server.handler(self)<br>
- </tt></td></tr>
- <tr><td><font color="#909090"><tt> <small> 559</small> except:<br>
- </tt></font></td></tr>
- <tr><td><font color="#909090"><tt> <small> 560</small> traceback.print_exc(file=self.stderr)<br>
- </tt></font></td></tr>
- <tr><td><small><font color="#909090">protocolStatus <em>undefined</em>, appStatus <em>undefined</em>, <strong>self</strong> = <flup.server.fcgi_base.Request object>, self.<strong>server</strong> = <flup.server.fcgi.WSGIServer object>, self.server.<strong>handler</strong> = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>></font></small></td></tr></table>
- <table width="100%" cellspacing=0 cellpadding=0 border=0>
- <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/pymodules/python2.7/flup/server/fcgi_base.py">/usr/lib/pymodules/python2.7/flup/server/fcgi_base.py</a> in <strong>handler</strong>(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)</td></tr>
- <tr><td><font color="#909090"><tt> <small> 1116</small> try:<br>
- </tt></font></td></tr>
- <tr><td><font color="#909090"><tt> <small> 1117</small> try:<br>
- </tt></font></td></tr>
- <tr><td bgcolor="#ffccee"><tt>=><small> 1118</small> result = self.application(environ, start_response)<br>
- </tt></td></tr>
- <tr><td><font color="#909090"><tt> <small> 1119</small> try:<br>
- </tt></font></td></tr>
- <tr><td><font color="#909090"><tt> <small> 1120</small> for data in result:<br>
- </tt></font></td></tr>
- <tr><td><small><font color="#909090"><strong>result</strong> = None, <strong>self</strong> = <flup.server.fcgi.WSGIServer object>, self.<strong>application</strong> = <function myapp>, <strong>environ</strong> = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www', 'DOCUMENT_URI': '/cgi-bin/whoami.py', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', ...}, <strong>start_response</strong> = <function start_response></font></small></td></tr></table>
- <table width="100%" cellspacing=0 cellpadding=0 border=0>
- <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///var/www/cgi-bin/whoami.py">/var/www/cgi-bin/whoami.py</a> in <strong>myapp</strong>(environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www', 'DOCUMENT_URI': '/cgi-bin/whoami.py', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', ...}, start_response=<function start_response>)</td></tr>
- <tr><td><font color="#909090"><tt> <small> 13</small> rsp += (field_format % ("HTTP_USER_AGENT", environ["HTTP_USER_AGENT"]))<br>
- </tt></font></td></tr>
- <tr><td><font color="#909090"><tt> <small> 14</small> rsp += (field_format % ("REMOTE_PORT", environ["REMOTE_PORT"]))<br>
- </tt></font></td></tr>
- <tr><td bgcolor="#ffccee"><tt>=><small> 15</small> rsp += (field_format % ("HTTP_DNT", environ["HTTP_DNT"]))<br>
- </tt></td></tr>
- <tr><td><font color="#909090"><tt> <small> 16</small> <br>
- </tt></font></td></tr>
- <tr><td><font color="#909090"><tt> <small> 17</small> rsp = rsp + ("</body></html>")<br>
- </tt></font></td></tr>
- <tr><td><small><font color="#909090"><strong>rsp</strong> = '<html><head><title>Info</title></head><body><b>R... Firefox/15.0<br /><b>REMOTE_PORT</b> 53707<br />', <strong>field_format</strong> = '<b>%s</b> %s<br />', <strong>environ</strong> = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www', 'DOCUMENT_URI': '/cgi-bin/whoami.py', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': '', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', ...}</font></small></td></tr></table><p><strong><type 'exceptions.KeyError'></strong>: 'HTTP_DNT'
- <br><tt><small> </small> </tt>args =
- ('HTTP_DNT',)
- <br><tt><small> </small> </tt>message =
- 'HTTP_DNT'
- <!-- The above is a description of an error in a Python program, formatted
- for a Web browser because the 'cgitb' module was enabled. In case you
- are not reading this in a Web browser, here is the original traceback:
- Traceback (most recent call last):
- File "/usr/lib/pymodules/python2.7/flup/server/fcgi_base.py", line 558, in run
- protocolStatus, appStatus = self.server.handler(self)
- File "/usr/lib/pymodules/python2.7/flup/server/fcgi_base.py", line 1118, in handler
- result = self.application(environ, start_response)
- File "./whoami.py", line 15, in myapp
- rsp += (field_format % ("HTTP_DNT", environ["HTTP_DNT"]))
- KeyError: 'HTTP_DNT'
- -->
Add Comment
Please, Sign In to add comment