Skip to content Skip to sidebar Skip to footer

Autobahn Websocket Issue While Running With Twistd Using Tac File

I have a WebSocket server implemented using autobahn WebSocket framework using twisted. WebSocket server runs fine when the program ran with python. But if I run this using twistd

Solution 1:

I found the same problem today. You should downgrade txaio to version 1.1.0

Here is my pip list autobahn (0.10.9) autobahntestsuite (0.7.3) Twisted (15.4.0) txaio (1.1.0) zope.interface (4.1.3)

Solution 2:

AutobahnTestSuite was just updated and corrects this problem:

autobahn (0.10.9) autobahntestsuite (0.7.4) Twisted (15.5.0) txaio (2.1.0)

Solution 3:

This issue was not happening in my Ubuntu system. I was having this issue in ec2 instance with Machine Image Amazon Linux AMI. Seems txaio couldn’t detect the available twisted framework. Another fix other than mentioned above by @helder.vasc is to specify the framework as twisted explicitly. Adding this below in tac file solved the issue :

import txaio txaio.use_twisted()

Note sure about weather this is the perfect way to tackle this issue though.

Solution 4:

Can you try with Autobahn master? This should be fixed there, but there isn't yet a release containing the fix (dd1cff8f9480a125e510108482bfaf5b9eedc916).

You can install master like this: pip install https://github.com/crossbario/autobahn-python/archive/master.zip

Post a Comment for "Autobahn Websocket Issue While Running With Twistd Using Tac File"