crossbario / autobahn-cpp

WAMP for C++ in Boost/Asio
https://crossbar.io/autobahn
Boost Software License 1.0
251 stars 104 forks source link

Failing WebSocket connection (code=1002) #228

Open picanumber opened 3 years ago

picanumber commented 3 years ago

When running the "websocket_calle` example with "-p 8080", I get the error mentioned in the title, followed by:

"WAMP Protocol Error (invalid serialization of WAMP message: ExtraData unpack(b) received extra data.)"

The router configuration I use is taken from this example and invoked as suggested in crossbar.io:

docker run -v $PWD:/node -u 0 --rm --name=crossbar -it -p 8080:8080 crossbario/crossbar

Is there a fix for this? Am I doing something wrong?

RobertSundling commented 2 years ago

I had this same problem when I compiled the example code with the libmsgpack-dev package from Ubuntu 20.04 LTS installed, which apparently provides an incompatible version of msgpack.

After I uninstalled libmsgpack-dev using apt, and instead built and installed the latest msgpack from its sources, everything worked fine.

oberstet commented 2 years ago

thanks for noting! we should probably add that to the docs https://github.com/crossbario/autobahn-cpp#building-dependencies