Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing WebSocket connection (code=1002) #228

Open
picanumber opened this issue Aug 19, 2021 · 2 comments
Open

Failing WebSocket connection (code=1002) #228

picanumber opened this issue Aug 19, 2021 · 2 comments

Comments

@picanumber
Copy link

picanumber commented Aug 19, 2021

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

RobertSundling commented Mar 1, 2022

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
Copy link
Contributor

oberstet commented Mar 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants