VIVO X9 android7.0
使用 Appium 桌面版 1.2.6,Server1.7.1
JAVA 客户端 5.0.4
进行自动化前几分钟一切正常,但之后就出现 Could not proxy command to remote server.
导致无法操作手机,此时使用 adb 命令,一切正常.

[2017-11-21 04:11:41][MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: socket hang up
at JWProxy.proxy$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:152:13)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[2017-11-21 04:11:41][HTTP] <-- POST /wd/hub/session/d129bc0b-c1a5-4f5a-8d07-1163cbdb83d5/element 500 14 ms - 250
[2017-11-21 04:11:43][HTTP] --> POST /wd/hub/session/d129bc0b-c1a5-4f5a-8d07-1163cbdb83d5/appium/device/press_keycode {"keycode":4}
[2017-11-21 04:11:43][MJSONWP] Calling AppiumDriver.pressKeyCode() with args: [4,null,null,null,"d129bc0b-c1a5-4f5a-8d07-1163cbdb83d5"]
[2017-11-21 04:11:43][JSONWP Proxy] Proxying [POST /appium/device/press_keycode] to [POST http://localhost:8200/wd/hub/session/e5e7d225-6305-4aba-9cbd-9097c1a60f21/appium/device/press_keycode] with body: {"keycode":4,"metastate":null}

VIVO 另外一台手机也有这个情况.
其余手机未发现该问题..
求助...


↙↙↙阅读原文可查看相关链接,并与作者交流