Skip to content

Conversation

@daveriedstra
Copy link
Contributor

@daveriedstra daveriedstra commented Dec 21, 2025

This upgrades druid's consumption of the websockets API and better handles websocket messages while crow is disconnected.

NB: some errors are still logged when talking to druid with websocat via localhost but not via 127.0.0.1 (as described in #91). However, these don't block functionality and also aren't present when using python's websockets, so they are a different issue, possibly nothing to do with druid.

This error can happen when crow.serial = None, indicating crow is not
connected. It might happen in other cases too, but this seems common and
mundane enough to mention to the user.
@tehn
Copy link
Member

tehn commented Dec 22, 2025

thank you for investigating this! confirmed that it's now working. the errors are frustrating, i suspect this could be addressed with configuration options or another exception handler. maybe websocat isn't closing the connection the way it wants? i'll see if i can poke at it and make it a clean fix

@daveriedstra
Copy link
Contributor Author

Yeah I might take another poke at it if I have some more time. I'd like to do some kind of wiresharking to inspect the difference between what causes the errors and what doesn't. Might just be that the library got pickier.

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

Successfully merging this pull request may close these issues.

2 participants