botwave
botwave copied to clipboard
BUG -> No passkey results in a timeout
📝 Description
If a client tries to register with the no passkey (when one is set), it'll silently timeout.
Additionally, if we try to register with the wrong passkey (but one), it'll say that its the wrong passkey, but still timeout.
💻 Environment
Component
- [X] Client
- [X] Server
Operating System
- [X] Debian-based
Python Version
- [ ] >= 3.13
- [ ] 3.12
- [X] 3.11
- [ ] <= 3.10
🐞 Steps to Reproduce
- Run server with passkey
- Try to connect without passkey
- OR with a wrong passkey
📄 Logs / Screenshots
- No passkey:
BotWave - Client
[OK] Found backend at: /opt/BotWave/backends/bw_custom/src/bw_custom
[INFO] Checking for protocol updates...
[OK] You are using the latest protocol version
[CLIENT] Connecting to wss://[REDACTED]:9938...
[OK] WebSocket connected, registering...
[ERR] Registration timeout
- Wrong passkey:
BotWave - Client
[OK] Found backend at: /opt/BotWave/backends/bw_custom/src/bw_custom
[INFO] Checking for protocol updates...
[OK] You are using the latest protocol version
[CLIENT] Connecting to wss://[REDACTED]:9938...
[OK] WebSocket connected, registering...
[ERR] Authentication failed: Invalid passkey
[WARN] Connection closed by server
[ERR] Registration timeout
[CLIENT] Client stopped