推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
wdg8106
V2EX  ›  Python

再向大家请教一个 tornado 后台报错的问题。。

  •  
  •   wdg8106 · Mar 8, 2016 · 3257 views
    This topic created in 3862 days ago, the information mentioned may be changed or developed.
    [E 160308 11:09:59 http1connection:54] Uncaught exception
    Traceback (most recent call last):
    File "/usr/local/lib/python3.4/dist-packages/tornado/http1connection.py", line 238, in _read_message
    delegate.finish()
    File "/usr/local/lib/python3.4/dist-packages/tornado/httpserver.py", line 290, in finish
    self.delegate.finish()
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 1984, in finish
    self.execute()
    File "/usr/local/lib/python3.4/dist-packages/blueware-1.0.10/blueware/hooks/framework_tornado/web.py", line 480, in _bw_wrapper__RequestDispatcher_execute
    future = wrapped(*args, **kwargs)
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 2004, in execute
    **self.handler_kwargs)
    File "/usr/local/lib/python3.4/dist-packages/blueware-1.0.10/blueware/hooks/framework_tornado/web.py", line 448, in _bw_wrapper_RequestHandler___init___
    return wrapped(*args, **kwargs)
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 185, in __init__
    self.initialize(**kwargs)
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 2714, in wrapper
    self.redirect(url)
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 671, in redirect
    self.finish()
    File "/usr/local/lib/python3.4/dist-packages/blueware-1.0.10/blueware/hooks/framework_tornado/web.py", line 309, in _bw_wrapper_RequestHandler_finish_
    return wrapped(*args, **kwargs)
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 934, in finish
    self.flush(include_footers=True)
    File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 870, in flush
    for transform in self._transforms:
    TypeError: 'NoneType' object is not iterable

    服务器后台日志时不时会冒出这个错误, 请问有谁知道这是由什么引起的吗,多谢指教啊~
    2 replies  •  2016-03-09 08:52:37 +08:00
    knightdf
        1
    knightdf  
       Mar 8, 2016   ❤️ 1
    self._transforms = None # will be set in _execute
    看源码
    wdg8106
        2
    wdg8106  
    OP
       Mar 9, 2016
    @knightdf 非常感谢,虽然看的半知半解的,但是猜想应该是一段轮询的速度太快有关,我先改一下试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2596 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:11 · PVG 11:11 · LAX 20:11 · JFK 23:11
    ♥ Do have faith in what you're doing.