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

CoAP fails to pair-verify on macOS #181

Open
Jc2k opened this issue Sep 21, 2022 · 2 comments
Open

CoAP fails to pair-verify on macOS #181

Jc2k opened this issue Sep 21, 2022 · 2 comments
Labels

Comments

@Jc2k
Copy link
Owner

Jc2k commented Sep 21, 2022

2022-09-21 09:00:19.497 WARNING (MainThread) [aiohomekit.controller.coap.connection] Pair verify failed
Traceback (most recent call last):
  File "/Users/john/Projects/home-assistant/venv/lib/python3.9/site-packages/aiohomekit/controller/coap/connection.py", line 386, in connect
    await self.do_pair_verify(pairing_data)
  File "/Users/john/Projects/home-assistant/venv/lib/python3.9/site-packages/aiohomekit/controller/coap/connection.py", line 334, in do_pair_verify
    coap_client = await Context.create_server_context(root, bind=("::", 0))
  File "/Users/john/Projects/home-assistant/venv/lib/python3.9/site-packages/aiocoap/protocol.py", line 255, in create_server_context
    await self._append_tokenmanaged_messagemanaged_transport(
  File "/Users/john/Projects/home-assistant/venv/lib/python3.9/site-packages/aiocoap/protocol.py", line 127, in _append_tokenmanaged_messagemanaged_transport
    transport = await message_interface_constructor(mman)
  File "/Users/john/Projects/home-assistant/venv/lib/python3.9/site-packages/aiocoap/transports/simplesocketserver.py", line 190, in create_server
    self._pool = await self._serversocket.create(bind, log, self._loop, self)
  File "/Users/john/Projects/home-assistant/venv/lib/python3.9/site-packages/aiocoap/transports/simplesocketserver.py", line 103, in create
    raise ValueError("The transport can not be bound to any-address.")
ValueError: The transport can not be bound to any-address.

You can force the backend with:

AIOCOAP_SERVER_TRANSPORT=udp6

Which seems to allow it to start.

@Jc2k Jc2k added the CoAP label Sep 21, 2022
@roysjosh
Copy link
Contributor

With chrysn/aiocoap@54279e6 we can specify transports in the code

@Jc2k
Copy link
Owner Author

Jc2k commented Sep 22, 2022

If it uses udp6 on Linux anyway, then we should do that and force udp6.

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

No branches or pull requests

2 participants