Skip to content

Instantly share code, notes, and snippets.

@aaltat
Created November 1, 2017 14:57
Show Gist options
  • Save aaltat/651ac84f8e7e1f2352ba9470d654373e to your computer and use it in GitHub Desktop.
Save aaltat/651ac84f8e7e1f2352ba9470d654373e to your computer and use it in GitHub Desktop.
ProxyRequestError with Appium 1.7.1
2017-11-01 15:51:01:644 - [Appium] New AndroidUiautomator2Driver session created successfully, session a1e4c991-e24b-4c71-910e-1c88a151e61f added to master session list
2017-11-01 15:51:01:644 - [debug] [BaseDriver] Event 'newSessionStarted' logged at 1509544261644 (15:51:01 GMT+0200 (EET))
2017-11-01 15:51:01:645 - [debug] [MJSONWP] Responding to client with driver.createSession() result: {"platformVersion":"6.0.1","appPackage":"com.android.settings","platformName":"android","appActivity":".Settings","deviceName":"Samsung_J5","newCommandTimeout":300,"noReset":true,"fullReset":false,"udid":"04f2cee7","automationName":"uiautomator2"}
2017-11-01 15:51:01:647 - [HTTP] <-- POST /wd/hub/session 200 44640 ms - 319
2017-11-01 15:51:03:399 - [HTTP] --> POST /wd/hub/session/a1e4c991-e24b-4c71-910e-1c88a151e61f/elements {"using":"xpath","sessionId":"a1e4c991-e24b-4c71-910e-1c88a151e61f","value":"//*[@text='Apps']"}
2017-11-01 15:51:03:402 - [debug] [MJSONWP] Calling AppiumDriver.findElements() with args: ["xpath","//*[@text='Apps']","a1e4c991-e24b-4c71-910e-1c88a151e61f"]
2017-11-01 15:51:03:403 - [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
2017-11-01 15:51:03:403 - [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
2017-11-01 15:51:03:403 - [debug] [BaseDriver] Waiting up to 0 ms for condition
2017-11-01 15:51:03:405 - [debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8200/wd/hub/session/b970d883-3bc1-4829-86c6-3828ce080667/elements] with body: {"strategy":"xpath","selector":"//*[@text='Apps']","context":"","multiple":true}
2017-11-01 15:51:03:425 - [MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8200
at JWProxy.proxy$ (../../../lib/jsonwp-proxy/proxy.js:152:13)
at tryCatch (/usr/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
2017-11-01 15:51:03:427 - [HTTP] <-- POST /wd/hub/session/a1e4c991-e24b-4c71-910e-1c88a151e61f/elements 500 28 ms - 271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment