0

我正在使用轨道,一旦我在生产模式下打开轨道,它会在我的屏幕上引发以下错误

-- <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

我完全不知道可能是什么问题。谁能指出我正确的方向。

4

1 回答 1

0

现在对我有用的解决方案是升级到轨道 0.8。虽然它仍处于开发模式,但它运行良好并解决了问题。问题出在 proxy.py 文件中,该文件已在 0.8 版本中解决。

希望这可以帮助

于 2010-05-29T14:35:35.720 回答