AppiumTestDistribution
AppiumTestDistribution copied to clipboard
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `[Lcom.appium.device.Device;` from Object value (token `JsonToken.START_OBJECT`)
[Appium] Welcome to Appium v2.15.0 [Appium] Non-default server args: [Appium] { address: '127.0.0.1', basePath: '/wd/hub/', port: 8608, relaxedSecurityEnabled: true, plugin: { 'device-farm': { iosDeviceType: 'real' } } } [Appium] The autodetected Appium home path: /Users/mac [Appium] Attempting to load driver xcuitest... [Appium] Attempting to load driver uiautomator2... [Appium] Requiring driver at /Users/mac/node_modules/appium-xcuitest-driver/build/index.js [Appium] Requiring driver at /Users/mac/node_modules/appium-uiautomator2-driver/build/index.js [Appium] XCUITestDriver has been successfully loaded in 0.821s [Appium] AndroidUiautomator2Driver has been successfully loaded in 1.239s [Appium] Appium REST http interface listener started on http://127.0.0.1:8608/wd/hub [Appium] Available drivers: [Appium] - [email protected] (automationName 'XCUITest') [Appium] - [email protected] (automationName 'UiAutomator2') [Appium] Available plugins: [Appium] - [email protected] [Appium] - [email protected] [Appium] No plugins activated. Use the --use-plugins flag with names of plugins to activate [HTTP] --> GET /wd/hub/status {} [AppiumDriver@fc2a] Calling AppiumDriver.getStatus() with args: [] [AppiumDriver@fc2a] Responding to client with driver.getStatus() result: {"ready":true,"message":"The server is ready to accept new connections","build":{"version":"2.15.0"}} [HTTP] <-- GET /wd/hub/status 200 5 ms - 111 1 [HTTP] --> GET /device-farm/api/devices {} [HTTP] No route found for /device-farm/api/devices [HTTP] <-- GET /device-farm/api/devices 404 7 ms - 211
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type [Lcom.appium.device.Device; from Object value (token JsonToken.START_OBJECT)
at [Source: (String)"{"status":9,"value":{"error":"unknown command","message":"The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource","stacktrace":""}}"; line: 1, column: 1]。这是怎么回事呢
@xaaojia Please see this sample example - https://github.com/AppiumTestDistribution/ATD_LT_DEMO
Also make sure you have the latest appium-device-farm plugin with the version mentioned here - https://github.com/AppiumTestDistribution/ATD_LT_DEMO/blob/main/pom.xml