All pastes #1558150 Raw Edit

sec

public text v1 · immutable
#1558150 ·published 2009-09-08 09:06 UTC
rendered paste body
Script started on Tue Sep  8 10:49:47 2009[sec@box ~/tmp/webpy1]$ ./test.py
http://0.0.0.0:8080/
82.139.157.31:50083 - - [08/Sep/2009 10:49:53] "HTTP/1.1 GET /" - 200 OK
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 242, in process
    return self.handle()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 233, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 412, in _delegate
    return handle_class(cls)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 387, in handle_class
    return tocall(*args)
  File "./test.py", line 11, in POST
    this_is_gonna_generate_error()
NameError: global name 'this_is_gonna_generate_error' is not defined

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 240, in process
    return p(lambda: process(processors))
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 558, in processor
    return handler()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 240, in <lambda>
    return p(lambda: process(processors))
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 249, in process
    raise self.internalerror()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 470, in internalerror
    return debugerror.debugerror()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.py", line 299, in debugerror
    return web._InternalError(djangoerror())
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.py", line 289, in djangoerror
    return t(exception_type, exception_value, frames)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 863, in __call__
    return BaseTemplate.__call__(self, *a, **kw)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 776, in __call__
    return self._join_output(out)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 782, in _join_output
    for name, value in out:
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.pyc", line 183, in __template__
    $if ctx.output or ctx.headers:
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/webapi.py", line 265, in input
    return storify(out, *requireds, **defaults)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 145, in storify
    value = getvalue(value)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 132, in getvalue
    return unicodify(x.value)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 127, in unicodify
    if _unicode and isinstance(s, str): return safeunicode(s)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 235, in safeunicode
    return obj.decode(encoding)
  File "/usr/local/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-11: invalid data

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 240, in process
    return p(lambda: process(processors))
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 573, in processor
    result = handler()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 240, in <lambda>
    return p(lambda: process(processors))
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 249, in process
    raise self.internalerror()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 470, in internalerror
    return debugerror.debugerror()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.py", line 299, in debugerror
    return web._InternalError(djangoerror())
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.py", line 289, in djangoerror
    return t(exception_type, exception_value, frames)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 863, in __call__
    return BaseTemplate.__call__(self, *a, **kw)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 776, in __call__
    return self._join_output(out)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 782, in _join_output
    for name, value in out:
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.pyc", line 183, in __template__
    $if ctx.output or ctx.headers:
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/webapi.py", line 265, in input
    return storify(out, *requireds, **defaults)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 145, in storify
    value = getvalue(value)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 132, in getvalue
    return unicodify(x.value)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 127, in unicodify
    if _unicode and isinstance(s, str): return safeunicode(s)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 235, in safeunicode
    return obj.decode(encoding)
  File "/usr/local/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-11: invalid data

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 240, in process
    return p(lambda: process(processors))
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 558, in processor
    return handler()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 240, in <lambda>
    return p(lambda: process(processors))
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 249, in process
    raise self.internalerror()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/application.py", line 470, in internalerror
    return debugerror.debugerror()
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.py", line 299, in debugerror
    return web._InternalError(djangoerror())
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.py", line 289, in djangoerror
    return t(exception_type, exception_value, frames)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 863, in __call__
    return BaseTemplate.__call__(self, *a, **kw)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 776, in __call__
    return self._join_output(out)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/template.py", line 782, in _join_output
    for name, value in out:
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/debugerror.pyc", line 183, in __template__
    $if ctx.output or ctx.headers:
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/webapi.py", line 265, in input
    return storify(out, *requireds, **defaults)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 145, in storify
    value = getvalue(value)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 132, in getvalue
    return unicodify(x.value)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 127, in unicodify
    if _unicode and isinstance(s, str): return safeunicode(s)
  File "/usr/local/lib/python2.6/site-packages/web.py-0.32-py2.6.egg/web/utils.py", line 235, in safeunicode
    return obj.decode(encoding)
  File "/usr/local/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-11: invalid data

Killed: 9
[sec@box ~/tmp/webpy1]$ exit
Script done on Tue Sep  8 10:50:44 2009