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

Error in getting started example #138

Closed
meatballs opened this issue Apr 2, 2020 · 1 comment
Closed

Error in getting started example #138

meatballs opened this issue Apr 2, 2020 · 1 comment

Comments

@meatballs
Copy link

Hi

I'm just starting to use crossbar for the first time and I've hit an error when attempting to follow the getting started guide.

I've cloned this repo and successfully started my router from within the getting started folder but, when I attempt to start the python publishing client, I get:

"ws://crossbar:8080/ws" "realm1"
Traceback (most recent call last):
  File "/app/1.hello-world/client_component_publish.py", line 37, in <module>
    component = Component(transports=url, realm=realmv)
  File "/usr/local/lib/python3.7/site-packages/autobahn/wamp/component.py", line 512, in __init__
    _create_transport(idx, transport, self._check_native_endpoint)
  File "/usr/local/lib/python3.7/site-packages/autobahn/wamp/component.py", line 171, in _create_transport
    is_secure, host, port, resource, path, params = parse_ws_url(transport['url'])
  File "/usr/local/lib/python3.7/site-packages/autobahn/websocket/util.py", line 140, in parse_url
    raise Exception("invalid WebSocket URL: protocol scheme '{}' is not for WebSocket".format(parsed.scheme))
Exception: invalid WebSocket URL: protocol scheme '' is not for WebSocket
@meatballs
Copy link
Author

Update
I installed crossbar into a virtualenv and the example starts without error. This must be something specific to the docker image.

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

No branches or pull requests

2 participants