解決Appium報錯read ECONNRESET


報錯信息如下:

error: Unhandled error: Error: read ECONNRESET
    at exports._errnoException (util.js:837:11)
    at TCP.onread (net.js:544:26) context: [POST /wd/hub/session {"desiredCapabi
lities":{"appPackage":"com.tencent.mm","appActivity":".ui.LauncherUI","recreateC
hromeDriverSessions":true,"noReset":true,"platformVersion":"4.4","unicodeKeyboar
d":"false","fastReset":"f]
info: [debug] Logcat terminated with code 0, signal null
info: [debug] UiAutomator exited

問題原因:該錯誤為端口掃描問題,如果某個端口無法通信(可能被防火牆過濾了也可能被其它軟件占用),就會報這種錯誤。

解決辦法:卸載本地環境殺毒軟件,重啟電腦。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM