question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Appium 1.16 beta, Could not proxy command to remote server / Error: connect ECONNREFUSED 127.0.0.1:8100

See original GitHub issue

The problem

When running tests using Appium v1.16.0-beta.1 against real iOS devices, we sometimes get disconnects in Appium (I assume between Appium and WebDriverAgent). When this happens, our test suite can’t seem to recover and all subsequent tests fail. The Appium process itself does not appear to crash.

Environment

  • Appium version (or git revision) that exhibits the issue: Appium v1.16.0-beta.1
  • Last Appium version that did not exhibit the issue (if applicable): Unsure, I can try to get a testing environment set up with 1.15.1 if desired, but we can’t go further back than that due to iOS 13 compatibility
  • Desktop OS/version used to run Appium: macOS 10.14.5
  • Node.js version (unless using Appium.app|exe): v12.10.0
  • Npm or Yarn package manager: 6.10.3
  • Mobile platform/version under test: iOS 13.1
  • Real device or emulator/simulator: Real iPhone Xs
  • Appium CLI or Appium.app|exe: CLI

Details

The specific error we are seeing for this issue is An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100. We are using WebdriverIO as our test runner, so apologies if this error doesn’t come directly from Appium. I will include a full Appium log below (with iOS logging enabled). We have made sure that we’re using the latest version of WebDriverAgent by manually uninstalling it from our build phones before these tests were ran.

Link to Appium logs

This log is extremely verbose due to iOS logging being on, so it is truncated from a bit before the above error started to appear, to the very end of the test run. https://gist.github.com/grant-mccarriagher/2c5b1c87506e1324be2b21d239519e4f

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
grant-mccarriaghercommented, Nov 11, 2019

We have not seen this issue since implementing the WDA strategy documented here: https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/wda-custom-server.md , and limiting our app removals/installs during testing. I will close this for now, and open a new issue if/when we attempt to dig into this further.

0reactions
maggie5750commented, May 15, 2020

We have not seen this issue since implementing the WDA strategy documented here: https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/wda-custom-server.md , and limiting our app removals/installs during testing. I will close this for now, and open a new issue if/when we attempt to dig into this further.

@grant-mccarriagher I have this issue too. I want to know what changes you have done on WDA? And what do you mean about “limiting our app removals/installs during testing”?

Read more comments on GitHub >

github_iconTop Results From Across the Web

appium ios - Error: connect ECONNREFUSED 127.0.0.1:8100
Put Appium url value as. 0.0.0.0:4723. Or. Localhost:4723. Remove the WDA from device and run the scripts again. This would solve your ...
Read more >
Unable to start WebDriverAgent : Could not proxy command to ...
Unable to start WebDriverAgent : Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100.
Read more >
appium/appium - Gitter
Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100 as it does not display the object ...
Read more >
[wd proxy] connect econnrefused 127.0.0.1:8100 - You.com
appium - XCUITest does not always start with error ECONNREFUSED ... Original error: Could not proxy command to remote server. Original error: Error:...
Read more >
Automation / Mobile / Troubleshooting Appium - Infinum
It may simply be that you did not start the server. Start the server and the error should be gone. :) Could not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found