Closed ethankcvds closed 1 year ago
Hmm.. This is very odd. Especially the part where you can access the list via the browser. That implies the adb
command and the connection are fine.
Does the error message appear immediately? I'm asking this, because the current timeout of the download is set to 10
seconds, which might be too short for some situations, where there are many tabs.
How long does it take the browser to fully load the list (e.g. until the loading icon is gone)? That might also be an indicator.
The error message appeared within in a few seconds after the Downloading tabs message.
It didn't take very long for either of the browsers I tried to load the page maybe 2-3 seconds to load.
Managed to get it working. Was using PHP version 7.4.26 tried going up to 7.4.30 wasn't working either. Tried 8.1.7 and it exported the open tabs.
I'll try to reproduce this problem tomorrow.
Sorry for the wait. Was a bit longer than expected... A lot of tomorrows since :)
I could really not make this work. What's especially strange: It initially worked for me without a problem (under PHP 8). That was back before the initial release.
I first thought this might be related to the PHP version, but it still didn't work. I've changed devices since, so it could very well be something that different from device to device.
I've tried for wait-time, in case the socket forwarding couldn't be established in time for the HTTP request to hit, but that didn't do the trick.
I now suspect that the function used for download is not equipped to handle some non-standard element of the communication. I left it at that.
So I ended up by moving from the native, wrapper based file_get_contents()
call to a curl
based approach, which up to now worked in any version or with any of the devices I tried.
The release incorporating that change is available here (v0.4.0).
If you're still interested, please feel free to test your scenario again with the new version.
I tested v0.4.1 and it is working.
The adb executable is available. Running adb command...
Phone is a Motorola g play. USB debug is enabled on the phone and adb can connect to the phone. Chrome is open and running. When I open http://localhost:9222/json/list it shows every tab that is open.