Appium selenium.common.exceptions.WebDriverException: Message: 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:8200

WwuTT · 2020年03月19日 · 最后由 yusimin001 回复于 2020年05月08日 · 4959 次阅读

脚本跑着跑着就崩了 到底什么原因啊 找好几天了😭

[HTTP] <-- POST /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/element 200 89 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/element/bd531b9b-d2be-49f2-b14a-3a719c2d65e3/click
[HTTP] {"id":"bd531b9b-d2be-49f2-b14a-3a719c2d65e3"}
[W3C (e19247da)] Calling AppiumDriver.click() with args: ["bd531b9b-d2be-49f2-b14a-3a719c2d65e3","e19247da-68e5-432b-8e9d-aeb5faf3bbbd"]
[WD Proxy] Matched '/element/bd531b9b-d2be-49f2-b14a-3a719c2d65e3/click' to command name 'click'
[WD Proxy] Proxying [POST /element/bd531b9b-d2be-49f2-b14a-3a719c2d65e3/click] to [POST http://localhost:8200/wd/hub/session/a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7/element/bd531b9b-d2be-49f2-b14a-3a719c2d65e3/click] with body: {"element":"bd531b9b-d2be-49f2-b14a-3a719c2d65e3"}
[WD Proxy] Got response with status 200: {"sessionId":"a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7","value":null}
[W3C (e19247da)] Responding to client with driver.click() result: null
[HTTP] <-- POST /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/element/bd531b9b-d2be-49f2-b14a-3a719c2d65e3/click 200 69 ms - 14
[HTTP]
[Logcat] Logcat terminated with code 0, signal null
[Instrumentation] The process has exited with code 0
[HTTP] --> POST /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/element
[HTTP] {"using":"id","value":"com.freeme.camera:id/thumbnail"}
[W3C (e19247da)] Calling AppiumDriver.findElement() with args: ["id","com.freeme.camera:id/thumbnail","e19247da-68e5-432b-8e9d-aeb5faf3bbbd"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 20000 ms for condition
[WD Proxy] Matched '/element' to command name 'findElement'
[WD Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7/element] with body: {"strategy":"id","selector":"com.freeme.camera:id/thumbnail","context":"","multiple":false}
[WD Proxy] Got an unexpected response with status undefined: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8200}
[W3C (e19247da)] Encountered internal error running command: UnknownError: 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:8200
[W3C (e19247da)] at JWProxy.command (C:\Users\wutao\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[HTTP] <-- POST /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/element 500 1027 ms - 631
[HTTP]
[HTTP] --> GET /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/screenshot
[HTTP] {}
[W3C (e19247da)] Calling AppiumDriver.getScreenshot() with args: ["e19247da-68e5-432b-8e9d-aeb5faf3bbbd"]
[WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7/screenshot] with no body
[WD Proxy] Got an unexpected response with status undefined: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8200}
[W3C (e19247da)] Encountered internal error running command: UnknownError: 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:8200
[W3C (e19247da)] at JWProxy.command (C:\Users\wutao\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[HTTP] <-- GET /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/screenshot 500 1015 ms - 631
[HTTP]
[HTTP] --> GET /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/screenshot
[HTTP] {}
[W3C (e19247da)] Calling AppiumDriver.getScreenshot() with args: ["e19247da-68e5-432b-8e9d-aeb5faf3bbbd"]
[WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7/screenshot] with no body
[WD Proxy] Got an unexpected response with status undefined: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8200}
[W3C (e19247da)] Encountered internal error running command: UnknownError: 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:8200
[W3C (e19247da)] at JWProxy.command (C:\Users\wutao\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[HTTP] <-- GET /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/screenshot 500 1009 ms - 631
[HTTP]
[HTTP] --> GET /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/screenshot
[HTTP] {}
[W3C (e19247da)] Calling AppiumDriver.getScreenshot() with args: ["e19247da-68e5-432b-8e9d-aeb5faf3bbbd"]
[WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7/screenshot] with no body
[WD Proxy] Got an unexpected response with status undefined: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8200}
[W3C (e19247da)] Encountered internal error running command: UnknownError: 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:8200
[W3C (e19247da)] at JWProxy.command (C:\Users\wutao\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[HTTP] <-- GET /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd/screenshot 500 1014 ms - 631
[HTTP]
[HTTP] --> DELETE /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd
[HTTP] {}
[W3C (e19247da)] Calling AppiumDriver.deleteSession() with args: ["e19247da-68e5-432b-8e9d-aeb5faf3bbbd"]
[BaseDriver] Event 'quitSessionRequested' logged at 1584952417152 (16:33:37 GMT+0800 (中国标准时间))
[Appium] Removing session e19247da-68e5-432b-8e9d-aeb5faf3bbbd from our master session list
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[WD Proxy] Matched '/' to command name 'deleteSession'
[WD Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/a90f5791-6ddd-48f5-9aa8-0fdd2a712cf7] with no body
[WD Proxy] Got an unexpected response with status undefined: {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8200}
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: 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:8200
[UiAutomator2] Resetting IME to 'io.appium.settings/.UnicodeIME'
[ADB] Running 'F:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZSNJNRUCQSAIWOPB shell ime set io.appium.settings/.UnicodeIME'
[UiAutomator2] Unable to reset IME: Error executing adbExec. Original error: 'Command 'F:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZSNJNRUCQSAIWOPB shell ime set io.appium.settings/.UnicodeIME' exited with code 1'; Stderr: 'error: device offline'; Code: '1'
[ADB] Running 'F:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZSNJNRUCQSAIWOPB shell am force-stop com.freeme.camera'
[UiAutomator2] Unable to force stop app: Error executing adbExec. Original error: 'Command 'F:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZSNJNRUCQSAIWOPB shell am force-stop com.freeme.camera' exited with code 1'; Stderr: 'error: device offline'; Code: '1'
[Logcat] Stopping logcat capture
[Logcat] Logcat already stopped
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running 'F:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZSNJNRUCQSAIWOPB forward --remove tcp:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'F:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZSNJNRUCQSAIWOPB forward --remove tcp:8200' exited with code 1'; Stderr: 'adb.exe: error: device offline'; Code: '1''
[BaseDriver] Event 'quitSessionFinished' logged at 1584952418345 (16:33:38 GMT+0800 (中国标准时间))
[W3C (e19247da)] Received response: null
[W3C (e19247da)] But deleting session, so not returning
[W3C (e19247da)] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/e19247da-68e5-432b-8e9d-aeb5faf3bbbd 200 1194 ms - 14
[HTTP]

共收到 1 条回复 时间 点赞

您好,请问您解决了么。。。。。我也遇到这个问题,一直解决不掉

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册