Appium WebDriverIO Node.js tests on Device Farm (iOS): ECONNRESET error

0

Hi, I'm getting the following error every time I try to run my Appium JS tests on iOS devices in AWS Device Farm: WARN webdriver: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: Failed to receive any data within the timeout: 5000 For the following 2 attempts I get: **ERROR webdriver: RequestError: read ECONNRESET [0-0] at ClientRequest.<anonymous> (/private/tmp/scratchmnNKi2.scratch/test-packagecg02Ek/node_modules/webdriverio-tests/node_modules/got/dist/source/core/index.js:962:111) ** I tried with different Appium versions (1.14.2, 1.18.0, 1.19.0, even installing the latest 1.22.2 manually) as well as various iOS devices. Nothing helps nor changes the outcome. The app .ipa file is valid as I checked it earlier in manual connection sessions and it gets installed every time. So looks like some kind of a connection issue. The same tests work locally.

My current desired capabilities look like this (although I also tried to run the tests without any and got the same result): { platformName: 'iOS', maxInstances: 1, 'appium:automationName': 'XCUITest', 'appium:noReset': true, 'appium:newCommandTimeout': 240 }

Shared capabilities look like this: exports.config = { // // ==================== // Runner Configuration // ==================== runner: 'local', path: '/wd/hub', port: 4723, specs: ['./specs/**/*.js'], // Patterns to exclude. exclude: [ // 'path/to/excluded/files' ], maxInstances: 1,

logLevel: 'info',

bail: 0, baseUrl: 'localhost',

waitforTimeout: 20000,

connectionRetryTimeout: 120000,

connectionRetryCount: 3, framework: 'mocha', reporters: ['spec'], mochaOpts: { ui: 'bdd', timeout: 200000 //retries: 2 }, afterTest: async function (test, context, { error, result, duration, passed, retries }) { // take a screenshot anytime a test fails and throws an error if (!passed) { const testName = test.title.toString().split(' ').join('-') await driver.saveScreenshot(./Failure_Screenshot_${testName}.png) } } }

Any help would be appreaciated as this error is not descriptive at all.

  • 'trace' logging level shows only the following error messages: [0-0] 2022-03-03T13:40:39.126Z DEBUG webdriver: request failed due to response error: unknown error [0-0] 2022-03-03T13:40:39.141Z WARN webdriver: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: Failed to receive any data within the timeout: 5000

Dm_Kr
質問済み 2年前153ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ