我使用的是轨道模式,一旦我在生产模式下打开轨道模式,屏幕上就会抛出以下错误
-- <exception caught here> --- File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 150, in process self.render(resrc) File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 157, in render body = resrc.render(self) File "/usr/local/lib/python2.6/dist-packages/orbited-0.7.10-py2.6.egg/orbited/transports/base.py", line 21, in render self.conn.transportOpened(self)
File "/usr/local/lib/python2.6/dist-packages/orbited-0.7.10-py2.6.egg/orbited/cometsession.py", line 322, in transportOpened self.cometTransport.flush()
File "/usr/local/lib/python2.6/dist-packages/orbited-0.7.10-py2.6.egg/orbited/transports/base.py", line 45, in flush self.write(self.packets)
File "/usr/local/lib/python2.6/dist-packages/orbited-0.7.10-py2.6.egg/orbited/transports/htmlfile.py", line 42, in write self.request.write(payload);
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 862, in write self.transport.write(data)
File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 420, in write abstract.FileDescriptor.write(self, bytes)
File "/usr/lib/python2.6/dist-packages/twisted/internet/abstract.py", line 170, in write raise TypeError("Data must not be unicode")
exceptions.TypeError: Data must not be unicode
我完全不知道问题出在哪里。谁能给我指个正确的方向。
发布于 2010-05-29 22:35:36
现在对我起作用的解决方案是升级到Orbited0.8。虽然它仍处于开发模式,但它工作良好,解决了这个问题。该问题存在于proxy.py文件中,该文件已在0.8版本中解决。
希望这能有所帮助
https://stackoverflow.com/questions/2902625
复制相似问题