-
Notifications
You must be signed in to change notification settings - Fork 316
Error connecting when using 'iOS WebKit Debug Proxy' #59
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
Comments
Thanks for reporting this in a such accurate way. I always wanted to give IWDP a try but I'm not an iOS user/developer. If you succeed in doing so I can add it to the list of supported implementations.
No, it is not mandatory but it's the default. var options = {
chooseTab: 'ws://localhost:9222/devtools/page/d1ec5032-ee90-4820-bc75-1f6f007edfe8'
} |
I could make an exception just for IWDP and fetch |
I've forked IWDP and added that trivial change, if you can compile it yourself try cloning my |
Hey @cyrus-and , Thanks again for the help here, explicitly setting However, some small issues still presented themselves, like when running the below code snippet:
We never reach the line I guess at this point (admittedly without testing myself yet), if I had the chrome-remote-interface utilize the correct Safari Inspector Protocol should the chrome-remote-interface work as expected in this case? I will do some more playing around with it this weekend on my end and will and let you know my findings, just wanted to hear your thoughts. Thanks again for your help here.. |
From the chrome.send('UnknownDomain.unknownCommand', params, callback);
chrome.on('UnknownEvent', callback); Surely, it would be nice to have the proper fetcher for IWDP too. But this will require:
I'm confident that both points are easily achievable. Thanks for your time. PS you can use |
Well it seems that there is no
As you say the two protocols are clearly different, but it is quite common among implementations. |
The PR has been merged into master. The Safari (iOS) support is now official (54a6ad6). I'm closing this issue since it was about the connection with IWDP. All the other issues you mentioned are valid, but concern the differences between the Chromium protocol and Safari's. As a personal TODO I might consider submitting another PR for point 2, I'll keep you posted. |
Awesome, this all makes sense, and great to know that I can use the raw methods for commands and events.
And yes, this is great news! Thanks again for being so responsive and for all of your help here! |
WebDebugX support new version ios |
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I am currently running into errors when trying to connect the chrome-remote-interface module to the debug server running on 'http://localhost:9222/' when it has been started with the iOS WebKit Debug Proxy.
I feel this might be a compatibility issue but just wanted to confirm that I am not missing anything obvious here, since to my understanding the iOS WebKit Debug Proxy uses the Chrome Remote Debugging Protocol and therefore the chrome-remote-interface should be able to connect. Also confirming that I can open the Dev Tools Frontend Url and see the proper network requests from my local iPhone simulator being emitted, so I know that this part is working as expected.
When running this code:
I get this error (with no other console messages, it does not make it to the callback):
I seems the root of the issue is that the debug server for iwdp returns a 404 error when visiting route 'json/list'.
My main question is, should iwdp be providing the route 'json/list' for the chrome-remote-interface to be able to connect, or am I missing something else in setting up this connection?
Thanks again for your help here.
The text was updated successfully, but these errors were encountered: