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년 전152회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인