V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-03-08 11:13:23 +08:00 · 2461 次点击
    这是一个创建于 3187 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [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 条回复    2016-03-09 08:52:37 +08:00
    knightdf
        1
    knightdf  
       2016-03-08 12:59:30 +08:00   ❤️ 1
    self._transforms = None # will be set in _execute
    看源码
    wdg8106
        2
    wdg8106  
    OP
       2016-03-09 08:52:37 +08:00
    @knightdf 非常感谢,虽然看的半知半解的,但是猜想应该是一段轮询的速度太快有关,我先改一下试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1327 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:47 · PVG 01:47 · LAX 09:47 · JFK 12:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.