Appium 1.16 beta, Could not proxy command to remote server / Error: connect ECONNREFUSED 127.0.0.1:8100
See original GitHub issueThe 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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
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”?