【Appium踩坑】Could not proxy command to remote server. Original error: Error: read ECONNRESET

一、解决方法

adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test

二、相关参考 - stackoverflow讨论

Could not proxy command to remote server. Original error: Error: read ECONNRESET

三、详细报错信息
[W3C] 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: read ECONNRESET


2021-12-30 08:58:12:307 - [WD Proxy] Error: read ECONNRESET
2021-12-30 08:58:12:308 - [WD Proxy]     at TCP.onStreamRead (internal/stream_base_commons.js:201:27)
2021-12-30 08:58:12:311 - [debug] [UiAutomator2] Deleting UiAutomator2 session
2021-12-30 08:58:12:312 - [debug] [UiAutomator2] Deleting UiAutomator2 server session
2021-12-30 08:58:12:312 - [debug] [WD Proxy] Matched '/' to command name 'deleteSession'
2021-12-30 08:58:12:312 - [debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8200/wd/hub/session/fd3d3725-83e3-44a2-bb61-ca7ff2dcda35] with no body
2021-12-30 08:58:12:320 - [WD Proxy] Error: read ECONNRESET
2021-12-30 08:58:12:320 - [WD Proxy]     at TCP.onStreamRead (internal/stream_base_commons.js:201:27)
2021-12-30 08:58:12:321 - [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 the remote server. Original error: read ECONNRESET
2021-12-30 08:58:12:321 - [debug] [UiAutomator2] Resetting IME to 'io.appium.settings/.UnicodeIME'
2021-12-30 08:58:12:321 - [debug] [ADB] Running '/Users/xxx/Library/Android/sdk/platform-tools/adb -P 5037 -s ed0335e2 shell ime set io.appium.settings/.UnicodeIME'
2021-12-30 08:58:12:356 - [debug] [Logcat] Stopping logcat capture
2021-12-30 08:58:12:360 - [debug] [ADB] Removing forwarded port socket connection: 8200
2021-12-30 08:58:12:361 - [debug] [ADB] Running '/Users/xxx/Library/Android/sdk/platform-tools/adb -P 5037 -s ed0335e2 forward --remove tcp:8200'
2021-12-30 08:58:12:370 - [UiAutomator2] Restoring hidden api policy to the device default configuration
2021-12-30 08:58:12:371 - [debug] [ADB] Running '/Users/xxx/Library/Android/sdk/platform-tools/adb -P 5037 -s ed0335e2 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
2021-12-30 08:58:12:427 - [debug] [BaseDriver] Event 'newSessionStarted' logged at 1640854692427 (16:58:12 GMT+0800 (China Standard Time))
2021-12-30 08:58:12:454 - [debug] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: read ECONNRESET
2021-12-30 08:58:12:454 - [debug] [W3C]     at UIA2Proxy.command (/usr/local/lib/node_modules/appium/node_modules/_appium-base-driver@7.7.0@appium-base-driver/lib/jsonwp-proxy/proxy.js:274:13)
2021-12-30 08:58:12:454 - [debug] [W3C]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
2021-12-30 08:58:12:458 - [HTTP] <-- POST /wd/hub/session 500 1066 ms - 627
2021-12-30 08:58:12:458 - [HTTP]
2021-12-30 08:58:12:526 - [debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
2021-12-30 09:01:19:353 - [debug] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed.
2021-12-30 09:01:19:356 - [debug] [Instrumentation] INSTRUMENTATION_CODE: 0
2021-12-30 09:01:19:774 - [debug] [Instrumentation] The process has exited with code 0

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值