Skip to content
New issue

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

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

Already on GitHub? # to your account

Make sure Spa has a name... #54

Open
doctorkb opened this issue Jan 9, 2025 · 0 comments
Open

Make sure Spa has a name... #54

doctorkb opened this issue Jan 9, 2025 · 0 comments

Comments

@doctorkb
Copy link

doctorkb commented Jan 9, 2025

I was getting this in the Spa Shell tool:

2025-01-09 15:44:46,355 geckolib.locator INFO Discovery process started
2025-01-09 15:44:46,356 geckolib.locator DEBUG Locator retry thread started
2025-01-09 15:44:46,406 geckolib.driver.udp_socket DEBUG Sending b'<HELLO>1</HELLO>' to ('192.168.1.24', 10022)
2025-01-09 15:44:46,431 geckolib.driver.udp_socket DEBUG Received b'<HELLO>SPA80:1f:12:65:c6:77</HELLO>' from ('192.168.1.24', 10022)
2025-01-09 15:44:46,431 geckolib.driver.udp_socket ERROR Unhandled exception in receive_handler func
Traceback (most recent call last):
  File "/home/kris/gecko/lib/python3.11/site-packages/geckolib/driver/udp_socket.py", line 180, in dispatch_recevied_data
    receive_handler.handle(received_bytes, remote_end)
  File "/home/kris/gecko/lib/python3.11/site-packages/geckolib/driver/protocol/hello.py", line 83, in handle
    self._spa_identifier, spa_name = content.split(b"|")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

Noticed that the Spa didn't have a name assigned in the app -- updated that, and everything works. Just in case anyone is running into similar issues (might be good to have some sort of better error like "found something, but doesn't appear to be named?" if possible... I'm not a python coder, so my abilities to submit a PR are limited).

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

No branches or pull requests

1 participant