AppCrawler 运行 appcrawler 时候报,appium 使用的是 1.7.1 ,提示:Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404

jia · 2019年08月08日 · 945 次阅读


命令为 java -jar appcrawler-2.1.3.jar -c example.yml
服务端日志:
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.200] Find Conf /Users/cuimengjia/AppCrawler_Test/example.yml
2019-08-08 22:36:23 WARN [AppCrawler$.parseParams.217] can not know what platform, will use default android, please use -p to set the platform
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.219] Set Platform=Android
2019-08-08 22:36:23 INFO [AppCrawler$.parsePath.336] use app in the config file
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.234] app path =
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.248] use appium in the config file http://127.0.0.1:4723/wd/hub
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.252] appium address = Some(http://127.0.0.1:4723/wd/hub)
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.260] use conf in config file
2019-08-08 22:36:23 INFO [AppCrawler$.parseParams.264] result directory = Android_20190808203347
2019-08-08 22:36:23 INFO [DataRecord.initLog.30] alread exist
2019-08-08 22:36:23 INFO [DataRecord.append.13] append 1
2019-08-08 22:36:23 INFO [Crawler.start.126] set xpath attribute with List(name, label, value, resource-id, content-desc, index, text)
2019-08-08 22:36:23 INFO [Crawler.start.129] set xpath
2019-08-08 22:36:23 INFO [Crawler.loadPlugins.82] dynamic load plugin in /Users/cuimengjia/AppCrawler_Test/plugins/
2019-08-08 22:36:25 WARN [Runtimes$.loadPlugins.83] no /Users/cuimengjia/AppCrawler_Test/plugins/ directory, skip
2019-08-08 22:36:25 INFO [Crawler.loadPlugins.84] found dynamic plugins size 0
2019-08-08 22:36:25 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.TagLimitPlugin@511f5b1d
2019-08-08 22:36:25 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.ReportPlugin@4c82b5df
2019-08-08 22:36:25 INFO [Crawler.$anonfun$loadPlugins$5.86] com.testerhome.appcrawler.plugin.FreeMind@4214ae8f
2019-08-08 22:36:25 INFO [TagLimitPlugin.init.17] com.testerhome.appcrawler.plugin.TagLimitPlugin init
2019-08-08 22:36:25 INFO [ReportPlugin.init.17] com.testerhome.appcrawler.plugin.ReportPlugin init
2019-08-08 22:36:25 INFO [FreeMind.init.17] com.testerhome.appcrawler.plugin.FreeMind init
2019-08-08 22:36:25 INFO [ReportPlugin.start.21] reportPath=/Users/cuimengjia/AppCrawler_Test/Android_20190808203347
2019-08-08 22:36:25 INFO [Crawler.start.132] prepare setup Appium
2019-08-08 22:36:25 INFO [Crawler.setupAppium.262] use AppiumClient
八月 08, 2019 10:36:33 下午 org.openqa.selenium.remote.ProtocolHandshake createSession
信息: Detected dialect: W3C
2019-08-08 22:36:33 INFO [AppiumClient.setPlatformName.43] set platform android
Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - ""
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'CMJdeMacBook-Pro.local', ip: 'fe80:0:0:0:827:1aa8:6c9b:d7d6%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.5', java.version: '1.8.0_101'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{appActivity=.NovaMainActivity, app=, appPackage=com.dianping.v1, appium=http://127.0.0.1:4723/wd/hub, noReset=true, autoLaunch=true, automationName=uiautomator2, javascriptEnabled=true, platformName=ANDROID, fullReset=false, deviceName=demo, platform=ANDROID}]
Session ID: 2c9eb72a-14eb-4ad6-b6eb-b8900da64275
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:89)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.getSize(RemoteWebDriver.java:853)
at com.testerhome.appcrawler.driver.AppiumClient.getDeviceInfo(AppiumClient.scala:214)
at com.testerhome.appcrawler.driver.AppiumClient.appium(AppiumClient.scala:170)
at com.testerhome.appcrawler.driver.AppiumClient.(AppiumClient.scala:39)
at com.testerhome.appcrawler.Crawler.setupAppium(Crawler.scala:263)
at com.testerhome.appcrawler.Crawler.start(Crawler.scala:133)
at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:344)
at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:312)
at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:92)
at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)

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