doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.46k stars 199 forks source link

remote start-quic-tunnel failed #499

Closed Karl0226 closed 1 year ago

Karl0226 commented 1 year ago

I have run sudo pkill -SIGSTOP remoted on terminal. This is my run parameters on Pycharm remote start-quic-tunnel --rsd fe80::98e3:43ff:fe8b:d1b1%en6 58783 Then I received an error message like this

  File "/Users/hejiacheng/Downloads/pymobiledevice3 2/pymobiledevice3/remote/core_device_tunnel_service.py", line 162, in start_quic_tunnel
    async with aioquic_connect(
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/aioquic/asyncio/client.py", line 97, in connect
    await protocol.wait_connected()
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/aioquic/asyncio/protocol.py", line 127, in wait_connected
    await asyncio.shield(self._connected_waiter)
ConnectionError

Is there a step I missed or did wrong?

doronz88 commented 1 year ago

You are correct. I actually even forgot about it, but aioquic unfortunately doesn't support the CertificateRequest as part of the TLSv1.3 implementation, so I created my own branch that solves this issue here:

https://github.com/doronz88/aioquic/tree/feature/CertificateRequest

You can install it locally to solve this issue.

I currently pretty much neglected this in favor of a better native solution which will also create the tunnel device. You can read about the issue here:

https://github.com/aiortc/aioquic/issues/377

doronz88 commented 1 year ago

Should be fixed as part of v2.3.0. Feel free to reopen if this error persists.