Autobahn Python 0.9.3-3引发与" subscription_revocation"相关的异常。

时间:2015-03-30 04:48:59

标签: python autobahn

我正在运行Autobahn Python 0.9.3-3并且遇到一个奇怪的错误,我无法解决原因。这似乎只发生在较新的Autobahn Python客户端上。有什么想法吗?

2015-03-30 04:37:52+0000 [-] Starting factory <__main__.SocketServerFactory instance at 0x7fc830586b90>
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1] Traceback (most recent call last):
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]   File "/opt/AutobahnPython/autobahn/autobahn/wamp/websocket.py", line 88, in onMessage
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]     for msg in self._serializer.unserialize(payload, isBinary):
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]   File "/opt/AutobahnPython/autobahn/autobahn/wamp/serializer.py", line 129, in unserialize
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]     msg = Klass.parse(raw_msg)
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]   File "/opt/AutobahnPython/autobahn/autobahn/wamp/message.py", line 285, in parse
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]     role_features = role_cls(**details_role[u'features'])
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]   File "/opt/AutobahnPython/autobahn/autobahn/wamp/role.py", line 104, in __init__
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1]     RoleCommonPubSubFeatures.__init__(self, **kwargs)
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1] TypeError: __init__() got an unexpected keyword argument 'subscription_revocation'
2015-03-30 04:37:56+0000 [WampWebSocketServerProtocol,0,172.17.42.1] Failing WAMP-over-WebSocket transport: code = 1011, reason = 'WAMP Internal Error (__init__() got an unexpected keyword argument 'subscription_revocation')'
2015-03-30 04:37:56+0000 [-] WAMP-over-WebSocket transport lost: wasClean = True, code = 1000, reason = 'None'

我怀疑将Autobahn升级到0.10.x系列会解决这个问题,但不幸的是,有一些向后不兼容的更改似乎无法快速解决。

1 个答案:

答案 0 :(得分:0)

这是服务器中的一个错误,它似乎接受任意&#34;功能&#34;并将它们用作参数。这些新功能可能是在0.9.3版本之后的某个时间推出的。

如果有人遇到同样的问题,我会{0.9}支持created a patch

另外,如果你对一个问题进行投票,那么解释你为什么这样做会很好,所以我可以在将来改进提问。