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

Execution example in the readme raises an error #22

Open
s-wel opened this issue Apr 9, 2024 · 0 comments
Open

Execution example in the readme raises an error #22

s-wel opened this issue Apr 9, 2024 · 0 comments

Comments

@s-wel
Copy link

s-wel commented Apr 9, 2024

The code example in the readme raises an error for me
AttributeError: 'HiveMessageBusClient' object has no attribute 'protocol'.
After trying a bit, I managed to get it working by changing the code like this:

bus = HiveMessageBusClient(key, password, host, useragent="xclientx")
bus.connect()

I removed crypto_key and added password instead, added the host (only my case) and added a bus.connect(). When executing the code with these changes, I get a series of log messages including one with the response message and an error that the websocket was already open (does not stop the script). I suggest adding the changes above to make the example work.

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

1 participant