'Appium Wdio not run = ERROR webdriver: RequestError: connect ECONNREFUSED ::1:4723

Run npx wdio and not run ı more try but ı did not PLease help me this issue always

My caps

capabilities: [{
    
    platformName: "Android",
    "appium:deviceName": "emulator-5554",
    "appium:automationName": "UIAutomator2",
    "appium:app": join(process.cwd(), "./app/android/Berqnet Connect 3.1.0-1.apk"),
}],

My Bugs

ERROR webdriver: RequestError: connect ECONNREFUSED ::1:4723
ERROR @wdio/runner: Error: Failed to create session.
FAILED in Android - C:(MyFiles)\Desktop\wdioDers\test\specs\sample.js

My sample.js File

describe('Sample', () => {
it('Sample Test', () =>{

});

});



Solution 1:[1]

I think you need show full code of "wdio.config.js" to everyone can help you check around your config. Maybe, You can check the value of "services" in wdio.config.js file. You must set value of services is "services: ['appium']" I hope it will help you resolve your problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tran Huu Phuc