Skip to content

com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type [Lcom.appium.device.Device; from Object value (token JsonToken.START_OBJECT) #1221

@xaaojia

Description

@xaaojia

[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] - xcuitest@8.3.1 (automationName 'XCUITest')
[Appium] - uiautomator2@4.0.1 (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium] - device-farm@9.5.0
[Appium] - appium-dashboard@v2.0.3
[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]。这是怎么回事呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions