Skip to content

[cordova-debug-adapter] Error: connect ECONNREFUSED 127.0.0.1:9223 #191

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

Closed
brusinow opened this issue Sep 25, 2016 · 9 comments
Closed

[cordova-debug-adapter] Error: connect ECONNREFUSED 127.0.0.1:9223 #191

brusinow opened this issue Sep 25, 2016 · 9 comments

Comments

@brusinow
Copy link

brusinow commented Sep 25, 2016

Am getting this error whenever I try to "run ios on simulator". This is with the default values from the Cordova debug tools in my launch.json (so port 9220 for "run ios on simulator"). These are my debug logs:
Launching for ios (This may take a while)...
Launching app (This may take a while)...
Starting Ionic dev server (live reload: true)
Building and deploying app
Attaching to ios
Configuring debugging proxy
Unable to communicate with target
connect ECONNREFUSED 127.0.0.1:9223

@MSLaguana
Copy link
Member

Is the simulator you are connecting to running iOS 10? The tools that we use to connect to iOS for debugging need to be updated to work with iOS 10: google/ios-webkit-debug-proxy#144

You could try updating them as mentioned in the linked issue: brew update && brew upgrade libimobiledevice --HEAD && brew upgrade ios-webkit-debug-proxy

@brusinow
Copy link
Author

That did it! Thanks for the quick and detailed response, these tools are a life saver.

@brusinow brusinow reopened this Oct 4, 2016
@brusinow
Copy link
Author

brusinow commented Oct 4, 2016

I just got this same error on a different, pre-existing branch. Running the above updates didn't fix the problem. Any suggestions?

@MSLaguana
Copy link
Member

What do you mean by "pre-existing branch"? This is still you trying to deploy to the iOS simulator running iOS 10 correct?

Could you please try running it, and then on the command line running curl localhost:9221/json and curl localhost:9223/json (or whichever port number you get the ECONNREFUSED for)

@brusinow
Copy link
Author

brusinow commented Oct 4, 2016

Did a "cordova platform update ios" and somehow it fixed the problem. Sorry about that.

@letmaik
Copy link
Member

letmaik commented Nov 7, 2016

The proposed fixes don't work for me. Note that everything works fine when using UIWebView, even on iOS10 before applying the proposed fixes. Only when using WKWebView it doesn't work anymore. I can still connect to the simulator via the Safari debugging tools.

@StobyWan
Copy link

StobyWan commented Oct 4, 2017

@letmaik having same issue... were you able to resolve? pretty sure the problem is the local server WKWebview runs on unlike the standard UIWebview. would be cool to find a fix.

@itoys
Copy link
Contributor

itoys commented May 11, 2018

Hi there, sorry for delay.
Are you still faced this issue?

@itoys
Copy link
Contributor

itoys commented May 16, 2018

Closing now! Feel free to reopen if you still have this issue

@itoys itoys closed this as completed May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants