Android垂直滑动上的Appium Webdriver错误

Android垂直滑动上的Appium Webdriver错误,android,node.js,webdriver,appium-android,Android,Node.js,Webdriver,Appium Android,您好,当我使用Appium Webdeiver在Android上执行垂直滑动的步骤时。我得到以下错误。有人能帮我吗。?我看了录像, 这些都是JS错误 2021-04-16T01:53:35.402Z INFO webdriver: [POST] http://localhost:4723/wd/hub/session/621PS89Z-9341-8293-LP0S-c7282762a982/touch/perform 2021-04-16T01:53:35.402Z INFO webdrive

您好,当我使用Appium Webdeiver在Android上执行垂直滑动的步骤时。我得到以下错误。有人能帮我吗。?我看了录像,

这些都是JS错误

2021-04-16T01:53:35.402Z INFO webdriver: [POST] http://localhost:4723/wd/hub/session/621PS89Z-9341-8293-LP0S-c7282762a982/touch/perform
2021-04-16T01:53:35.402Z INFO webdriver: DATA {
actions: [
{ action: 'press', option: [Object] },
{ action: 'wait', option: [Object] },
{ action: 'moveTo', option: [Object] },
{ action: 'release', option: {} }
]
}
2021-04-16T01:53:35.411Z ERROR webdriver: Request failed with status 500 due to unknown error: An unknown server-side error occurred while processing the command. Original error: Cannot read property 'x' of undefined
(node:68922) UnhandledPromiseRejectionWarning: unknown error: An unknown server-side error occurred while processing the command. Original error: Cannot read property 'x' of undefined
at Object.getErrorFromResponseBody (Documents/AndrTest/node_modules/webdriver/build/utils.js:94:12)
at WebDriverRequest._request (Documents/AndrTest/node_modules/webdriver/build/request.js:134:31)
at processTicksAndRejections (internal/process/task_queues.js:93:5)```

And these are error from my appium console,
[HTTP] --> POST /wd/hub/session/661dc89f-3861-1233-ae4b-c78264634v182/touch/perform
[HTTP] {"actions":[{"action":"press","option":{"x":1044,"y":835.2}},{"action":"wait","option":{"ms":1000}},{"action":"moveTo","option":{"x":1044,"y":1252.8}},{"action":"release","option":{}}]}
[W3C (661dc89f)] Calling AppiumDriver.performTouch() with args: [[{"action":"press","option":{"x":1044,"y":835.2}},{"action":"wait","option":{"ms":1000}},{"action":"moveTo","option":{"x":1044,"y":1252.8}},{"action":"release","option":{}}],"661dc89f-3861-1233-ae4b-c78264634v182"]
[W3C (661dc89f)] Encountered internal error running command: TypeError: Cannot read property 'x' of undefined
[W3C (661dc89f)]     at AndroidUiautomator2Driver.getSwipeOptions (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:432:67)
[W3C (661dc89f)]     at AndroidUiautomator2Driver.performTouch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/touch.js:142:32)

This is my configs,
const opts = {
path: '/wd/hub',
port: 4723,
capabilities: {
platformName: "Android",
platformVersion: "11",
deviceName: "Android Emulator",
app: "Documents/AndrTest/latest.apk",
automationName: "UiAutomator2"
}
};



```client.touchPerform([
        {
            action: 'press',
            option: {
                x: anchor,
                y: startPoint

            }
        },
        {
            action: 'wait',
            option: {
                ms: 1000
            }
        },
        {
            action: 'moveTo',
            option: {
                x: anchor,
                y: endPoint
            }
        },
        {
            action: 'release',
            option: {}
        }
    ]);```