0

我到处寻找解决方案,经过很长时间的搜索,我仍然没有答案。

我在 Swampdragon 0.4.2 上使用 Django 1.7。每个随机时间段我都会收到此异常。

WebSocket
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sockjs/tornado/transports/websocket.py", line 60, in on_message
    self.session.on_messages(msg)
  File "/usr/local/lib/python2.7/site-packages/sockjs/tornado/session.py", line 418, in on_messages
    self.conn.on_message(msg)
  File "/usr/local/lib/python2.7/site-packages/swampdragon/connections/sockjs_connection.py", line 90, in on_message
    raise e
KeyError: 'channel'

Request repr(): unavailable

有人知道这是为什么吗?

4

1 回答 1

0

因此,经过很长时间,我终于调试了 SwampDragon 代码,发现问题是您还需要在取消订阅时(从客户端)发送频道名称。

于 2016-07-06T13:09:02.500 回答