appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
440 stars 179 forks source link

Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 #674

Open mazis0 opened 3 months ago

mazis0 commented 3 months ago

while i running the automation, i got error Original error: connect ECONNREFUSED 127.0.0.1:8100

environment : device : simulator ios 17.2 xcode : 15.2

the app and wda not installed

here is complete appium logs

[Appium] Welcome to Appium v2.5.1 (REV 4afb8e5602f3ecc9edf67a44257d8eceeaa8a108) [Appium] Non-default server args: [Appium] { [Appium] basePath: '/wd/hub' [Appium] } [Appium] The autodetected Appium home path: /Users/muhammad.azis/.appium [Appium] Attempting to load driver uiautomator2... [Appium] Attempting to load driver xcuitest... [Appium] Attempting to load driver flutter... [Appium] Requiring driver at /Users/muhammad.azis/.appium/node_modules/appium-uiautomator2-driver/build/index.js [Appium] Requiring driver at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/build/lib/driver.js [Appium] Requiring driver at /Users/muhammad.azis/.appium/node_modules/appium-xcuitest-driver/build/index.js [Appium] AndroidUiautomator2Driver has been successfully loaded in 1.731s [Appium] FlutterDriver has been successfully loaded in 1.731s [Appium] XCUITestDriver has been successfully loaded in 1.732s [Appium] Appium REST http interface listener started on http://0.0.0.0:4723/wd/hub [Appium] You can provide the following URLs in your client code to connect to this server: [Appium] http://127.0.0.1:4723/wd/hub (only accessible from the same host) [Appium] http://192.168.23.53:4723/wd/hub [Appium] Available drivers: [Appium] - uiautomator2@2.29.5 (automationName 'UiAutomator2') [Appium] - xcuitest@5.12.0 (automationName 'XCUITest') [Appium] - flutter@2.5.0 (automationName 'Flutter') [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. [HTTP] Request idempotency key: 06e8fb6a-a3ed-477c-81b5-3cc09185331b [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"app":"/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app","noReset":true,"wdaLaunchTimeout":60,"platformVersion":"17.2","automationName":"Flutter","autoGrantPermissions":true,"platformName":"iOS","udid":"F53B60AD-EFD2-4804-9ABC-4C65275EB692","deviceName":"Iphone 12"},"capabilities":{"firstMatch":[{"appium:app":"/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app","appium:autoGrantPermissions":true,"appium:automationName":"Flutter","appium:deviceName":"Iphone 12","appium:noReset":true,"platformName":"ios","appium:platformVersion":"17.2","appium:udid":"F53B60AD-EFD2-4804-9ABC-4C65275EB692","appium:wdaLaunchTimeout":60}]}} [AppiumDriver@dcf5] Calling AppiumDriver.createSession() with args: [{"app":"/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app","noReset":true,"wdaLaunchTimeout":60,"platformVersion":"17.2","automationName":"Flutter","autoGrantPermissions":true,"platformName":"iOS","udid":"F53B60AD-EFD2-4804-9ABC-4C65275EB692","deviceName":"Iphone 12"},null,{"firstMatch":[{"appium:app":"/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app","appium:autoGrantPermissions":true,"appium:automationName":"Flutter","appium:deviceName":"Iphone 12","appium:noReset":true,"platformName":"ios","appium:platformVersion":"17.2","appium:udid":"F53B60AD-EFD2-4804-9ABC-4C65275EB692","appium:wdaLaunchTimeout":60}]}] [AppiumDriver@dcf5] Event 'newSessionRequested' logged at 1711338782182 (10:53:02 GMT+0700 (Western Indonesia Time)) [Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'ios' [Appium] The 'flutter' driver was installed and matched caps. [Appium] Will require it at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver [Appium] Requiring driver at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/build/lib/driver.js [AppiumDriver@dcf5] Appium v2.5.1 creating new FlutterDriver (v2.5.0) session [AppiumDriver@dcf5] Checking BaseDriver versions for Appium and FlutterDriver [AppiumDriver@dcf5] Appium's BaseDriver version is 9.5.2 [AppiumDriver@dcf5] FlutterDriver's BaseDriver version is 9.5.2 [FlutterDriver@4b82] Creating session with W3C capabilities: { [FlutterDriver@4b82] "alwaysMatch": { [FlutterDriver@4b82] "platformName": "ios", [FlutterDriver@4b82] "appium:app": "/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app", [FlutterDriver@4b82] "appium:autoGrantPermissions": true, [FlutterDriver@4b82] "appium:automationName": "Flutter", [FlutterDriver@4b82] "appium:deviceName": "Iphone 12", [FlutterDriver@4b82] "appium:noReset": true, [FlutterDriver@4b82] "appium:platformVersion": "17.2", [FlutterDriver@4b82] "appium:udid": "F53B60AD-EFD2-4804-9ABC-4C65275EB692", [FlutterDriver@4b82] "appium:wdaLaunchTimeout": 60 [FlutterDriver@4b82] }, [FlutterDriver@4b82] "firstMatch": [ [FlutterDriver@4b82] {} [FlutterDriver@4b82] ] [FlutterDriver@4b82] } [FlutterDriver@4b82] The following provided capabilities were not recognized by this driver: [FlutterDriver@4b82] autoGrantPermissions [FlutterDriver@4b82] deviceName [FlutterDriver@4b82] wdaLaunchTimeout [FlutterDriver@4b82 (4857853a)] Session created with session id: 4857853a-81db-4464-818c-d07e6eec7034 [FlutterDriver] Starting an IOS proxy session [XCUITestDriver@f488] Creating session with W3C capabilities: { [XCUITestDriver@f488] "alwaysMatch": { [XCUITestDriver@f488] "platformName": "ios", [XCUITestDriver@f488] "appium:app": "/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app", [XCUITestDriver@f488] "appium:autoGrantPermissions": true, [XCUITestDriver@f488] "appium:automationName": "Flutter", [XCUITestDriver@f488] "appium:deviceName": "Iphone 12", [XCUITestDriver@f488] "appium:noReset": true, [XCUITestDriver@f488] "appium:platformVersion": "17.2", [XCUITestDriver@f488] "appium:udid": "F53B60AD-EFD2-4804-9ABC-4C65275EB692", [XCUITestDriver@f488] "appium:wdaLaunchTimeout": 60 [XCUITestDriver@f488] }, [XCUITestDriver@f488] "firstMatch": [ [XCUITestDriver@f488] {} [XCUITestDriver@f488] ] [XCUITestDriver@f488] } [XCUITestDriver@f488] The following provided capabilities were not recognized by this driver: [XCUITestDriver@f488] autoGrantPermissions [XCUITestDriver@f488 (4568c6c6)] Session created with session id: 4568c6c6-3497-4648-b729-caff605800e1 [XCUITest] Current user: 'muhammad.azis' [XCUITestDriver@f488 (4568c6c6)] Available devices: [XCUITestDriver@f488 (4568c6c6)] No real device with udid 'F53B60AD-EFD2-4804-9ABC-4C65275EB692'. Looking for a simulator [iOSSim] Constructing iOS simulator for Xcode version 15.2 with udid 'F53B60AD-EFD2-4804-9ABC-4C65275EB692' [XCUITestDriver@f488 (4568c6c6)] Determining device to run tests on: udid: 'F53B60AD-EFD2-4804-9ABC-4C65275EB692', real device: false [XCUITestDriver@f488 (4568c6c6)] Event 'xcodeDetailsRetrieved' logged at 1711338782341 (10:53:02 GMT+0700 (Western Indonesia Time)) [BaseDriver] Using local app '/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app' [XCUITestDriver@f488 (4568c6c6)] Event 'appConfigured' logged at 1711338782342 (10:53:02 GMT+0700 (Western Indonesia Time)) [XCUITest] Checking whether app '/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app' is actually present on file system [XCUITest] App is present [XCUITest] Getting bundle ID from app '/Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app': 'com.koltitrace.corporate' [XCUITestDriver@f488 (4568c6c6)] Event 'resetStarted' logged at 1711338782343 (10:53:02 GMT+0700 (Western Indonesia Time)) [XCUITest] Reset: noReset is on. Leaving simulator as is [XCUITestDriver@f488 (4568c6c6)] Event 'resetComplete' logged at 1711338782344 (10:53:02 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Using WDA path: '/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@f488 (4568c6c6)] Using WDA agent: '/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [IOSSimulatorLog] Starting log capture for iOS Simulator with udid 'F53B60AD-EFD2-4804-9ABC-4C65275EB692' using simctl [XCUITestDriver@f488 (4568c6c6)] Event 'logCaptureStarted' logged at 1711338782642 (10:53:02 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Setting up simulator [iOSSim] Setting preferences of F53B60AD-EFD2-4804-9ABC-4C65275EB692 Simulator to {"ConnectHardwareKeyboard":false} [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false} [iOSSim] Updated F53B60AD-EFD2-4804-9ABC-4C65275EB692 Simulator preferences at '/Users/muhammad.azis/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"F53B60AD-EFD2-4804-9ABC-4C65275EB692":{"ConnectHardwareKeyboard":false,"SimulatorExternalDisplay":2114,"ChromeTint":"","SimulatorWindowGeometry":{"C8D6CD7B-A519-4341-A31F-A0B7AE16185C":{"WindowCenter":"{719, 472.5}","WindowScale":0.7510330578512396}},"SimulatorWindowOrientation":"Portrait","SimulatorWindowRotationAngle":0}}} [iOSSim] Got Simulator UI client PID: 1485 [iOSSim] Both Simulator with UDID 'F53B60AD-EFD2-4804-9ABC-4C65275EB692' and the UI client are currently running [XCUITestDriver@f488 (4568c6c6)] Event 'simStarted' logged at 1711338783329 (10:53:03 GMT+0700 (Western Indonesia Time)) [XCUITest] Verifying application platform [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"] [XCUITest] /Users/muhammad.azis/Desktop/Automation mobile/Flutter/nestle/cucumber-apps-flutter-farmcloud/src/test/resources/app/Runner.app/Runner: Mach-O 64-bit executable x86_64 [XCUITestDriver@f488 (4568c6c6)] App 'com.koltitrace.corporate' is already installed [XCUITestDriver@f488 (4568c6c6)] noReset is requested. The app will not be be (re)installed [XCUITestDriver@f488 (4568c6c6)] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [DevCon Factory] Requesting connection for device F53B60AD-EFD2-4804-9ABC-4C65275EB692 on local port 8100 [DevCon Factory] Cached connections count: 0 [DevCon Factory] Successfully requested the connection for F53B60AD-EFD2-4804-9ABC-4C65275EB692:8100 [XCUITestDriver@f488 (4568c6c6)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [WD Proxy] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] WDA is not listening at 'http://127.0.0.1:8100/' [XCUITestDriver@f488 (4568c6c6)] WDA is currently not running. There is nothing to cache [XCUITestDriver@f488 (4568c6c6)] Trying to start WebDriverAgent 2 times with 10000ms interval [XCUITestDriver@f488 (4568c6c6)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [XCUITestDriver@f488 (4568c6c6)] Event 'wdaStartAttempted' logged at 1711338783587 (10:53:03 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Launching WebDriverAgent on the device [XCUITestDriver@f488 (4568c6c6)] Cleaning up the WebDriverAgent project after the module upgrade has happened (5.0.0 < 6.1.1) [XCUITestDriver@f488 (4568c6c6)] Cleaning the project scheme 'WebDriverAgentLib' to make sure there are no leftovers from previous installs [XCUITestDriver@f488 (4568c6c6)] Cleaning the project scheme 'WebDriverAgentRunner' to make sure there are no leftovers from previous installs [XCUITestDriver@f488 (4568c6c6)] Parsed BUILD_DIR configuration value: '/Users/muhammad.azis/Library/Developer/Xcode/DerivedData/WebDriverAgent-dsfxgjmdqbghisayuxxhmrmodqmw/Build/Products' [XCUITestDriver@f488 (4568c6c6)] Got derived data root: '/Users/muhammad.azis/Library/Developer/Xcode/DerivedData/WebDriverAgent-dsfxgjmdqbghisayuxxhmrmodqmw' [WebDriverAgent] Killing running processes 'xcodebuild.F53B60AD-EFD2-4804-9ABC-4C65275EB692, F53B60AD-EFD2-4804-9ABC-4C65275EB692.XCTRunner, xctest.F53B60AD-EFD2-4804-9ABC-4C65275EB692' for the device F53B60AD-EFD2-4804-9ABC-4C65275EB692... [WebDriverAgent] 'pgrep -if xcodebuild.F53B60AD-EFD2-4804-9ABC-4C65275EB692' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if F53B60AD-EFD2-4804-9ABC-4C65275EB692.XCTRunner' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if xctest.F53B60AD-EFD2-4804-9ABC-4C65275EB692' didn't detect any matching processes. Return code: 1 [XCUITestDriver@f488 (4568c6c6)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/muhammad.azis/Library/Developer/Xcode/DerivedData/WebDriverAgent-dsfxgjmdqbghisayuxxhmrmodqmw -destination id=F53B60AD-EFD2-4804-9ABC-4C65275EB692 IPHONEOS_DEPLOYMENT_TARGET=17.2 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@f488 (4568c6c6)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITestDriver@f488 (4568c6c6)] Waiting up to 60ms for WebDriverAgent to start [XCUITestDriver@f488 (4568c6c6)] WebDriverAgent successfully started after 533ms [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338786901 (10:53:06 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338787910 (10:53:07 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338788920 (10:53:08 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338789928 (10:53:09 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338790936 (10:53:10 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338791947 (10:53:11 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338792963 (10:53:12 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338793994 (10:53:13 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338795008 (10:53:15 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338796016 (10:53:16 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338797023 (10:53:17 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338798062 (10:53:18 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338799077 (10:53:19 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338800087 (10:53:20 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338801110 (10:53:21 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] at JWProxy.command (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:355:13) [XCUITestDriver@f488 (4568c6c6)] at processTicksAndRejections (node:internal/process/task_queues:95:5) [XCUITestDriver@f488 (4568c6c6)] at XCUITestDriver.proxyCommand (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:109:35) [XCUITestDriver@f488 (4568c6c6)] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:891:42 [XCUITestDriver@f488 (4568c6c6)] at wrapped (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [XCUITestDriver@f488 (4568c6c6)] at retry (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [XCUITestDriver@f488 (4568c6c6)] at retryInterval (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [XCUITestDriver@f488 (4568c6c6)] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:886:11 [XCUITestDriver@f488 (4568c6c6)] at wrapped (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [XCUITestDriver@f488 (4568c6c6)] at retry (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [XCUITestDriver@f488 (4568c6c6)] at retryInterval (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [XCUITestDriver@f488 (4568c6c6)] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:816:7 [XCUITestDriver@f488 (4568c6c6)] Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Quitting and uninstalling WebDriverAgent [XCUITestDriver@f488 (4568c6c6)] Shutting down sub-processes [WebDriverAgent] Shutting down 'xcodebuild' process (pid '5400') [WebDriverAgent] Sending 'SIGTERM'... [Xcode] xcodebuild exited with code 'null' and signal 'SIGTERM' [XCUITestDriver@f488 (4568c6c6)] No WDAs on the device. [XCUITestDriver@f488 (4568c6c6)] Event 'wdaStartAttempted' logged at 1711338811270 (10:53:31 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Launching WebDriverAgent on the device [XCUITestDriver@f488 (4568c6c6)] Cleaning up the WebDriverAgent project after the module upgrade has happened (5.0.0 < 6.1.1) [XCUITestDriver@f488 (4568c6c6)] Cleaning the project scheme 'WebDriverAgentLib' to make sure there are no leftovers from previous installs [XCUITestDriver@f488 (4568c6c6)] Cleaning the project scheme 'WebDriverAgentRunner' to make sure there are no leftovers from previous installs [WebDriverAgent] Killing running processes 'xcodebuild.F53B60AD-EFD2-4804-9ABC-4C65275EB692, F53B60AD-EFD2-4804-9ABC-4C65275EB692.XCTRunner, xctest.F53B60AD-EFD2-4804-9ABC-4C65275EB692' for the device F53B60AD-EFD2-4804-9ABC-4C65275EB692... [WebDriverAgent] 'pgrep -if F53B60AD-EFD2-4804-9ABC-4C65275EB692.XCTRunner' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if xcodebuild.F53B60AD-EFD2-4804-9ABC-4C65275EB692' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if xctest.F53B60AD-EFD2-4804-9ABC-4C65275EB692' didn't detect any matching processes. Return code: 1 [XCUITestDriver@f488 (4568c6c6)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/muhammad.azis/Library/Developer/Xcode/DerivedData/WebDriverAgent-dsfxgjmdqbghisayuxxhmrmodqmw -destination id=F53B60AD-EFD2-4804-9ABC-4C65275EB692 IPHONEOS_DEPLOYMENT_TARGET=17.2 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@f488 (4568c6c6)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability [XCUITestDriver@f488 (4568c6c6)] Waiting up to 60ms for WebDriverAgent to start [XCUITestDriver@f488 (4568c6c6)] WebDriverAgent successfully started after 466ms [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338815017 (10:53:35 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338816028 (10:53:36 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338817043 (10:53:37 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338818051 (10:53:38 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338819076 (10:53:39 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338820084 (10:53:40 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338821088 (10:53:41 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338822099 (10:53:42 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338823104 (10:53:43 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338824111 (10:53:44 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338825131 (10:53:45 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338826136 (10:53:46 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338827145 (10:53:47 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338828165 (10:53:48 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338829171 (10:53:49 GMT+0700 (Western Indonesia Time)) [XCUITestDriver@f488 (4568c6c6)] Sending createSession command to WDA [XCUITestDriver@f488 (4568c6c6)] Matched '/status' to command name 'getStatus' [XCUITestDriver@f488 (4568c6c6)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@f488 (4568c6c6)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying... [XCUITestDriver@f488 (4568c6c6)] UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] at JWProxy.command (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:355:13) [XCUITestDriver@f488 (4568c6c6)] at processTicksAndRejections (node:internal/process/task_queues:95:5) [XCUITestDriver@f488 (4568c6c6)] at XCUITestDriver.proxyCommand (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:109:35) [XCUITestDriver@f488 (4568c6c6)] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:891:42 [XCUITestDriver@f488 (4568c6c6)] at wrapped (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [XCUITestDriver@f488 (4568c6c6)] at retry (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [XCUITestDriver@f488 (4568c6c6)] at retryInterval (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [XCUITestDriver@f488 (4568c6c6)] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:886:11 [XCUITestDriver@f488 (4568c6c6)] at wrapped (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [XCUITestDriver@f488 (4568c6c6)] at retry (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [XCUITestDriver@f488 (4568c6c6)] at retryInterval (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [XCUITestDriver@f488 (4568c6c6)] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:816:7 [XCUITestDriver@f488 (4568c6c6)] Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@f488 (4568c6c6)] Quitting and uninstalling WebDriverAgent [XCUITestDriver@f488 (4568c6c6)] Shutting down sub-processes [WebDriverAgent] Shutting down 'xcodebuild' process (pid '5967') [WebDriverAgent] Sending 'SIGTERM'... [Xcode] xcodebuild exited with code 'null' and signal 'SIGTERM' [XCUITestDriver@f488 (4568c6c6)] No WDAs on the device. [XCUITestDriver@f488 (4568c6c6)] {} [DevCon Factory] Releasing connections for F53B60AD-EFD2-4804-9ABC-4C65275EB692 device on any port number [DevCon Factory] Found cached connections to release: ["F53B60AD-EFD2-4804-9ABC-4C65275EB692:8100"] [DevCon Factory] Cached connections count: 0 [XCUITestDriver@f488 (4568c6c6)] Not clearing log files. Use clearSystemFiles capability to turn on. [IOSSimulatorLog] Stopping iOS log capture [FlutterDriver@4b82 (4857853a)] Deleting Flutter Driver session [FlutterDriver@4b82 (4857853a)] Cleanup the port forward [AppiumDriver@dcf5] Event 'newSessionStarted' logged at 1711338829334 (10:53:49 GMT+0700 (Western Indonesia Time)) [AppiumDriver@dcf5] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100 [AppiumDriver@dcf5] at quitAndUninstall (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:791:15) [AppiumDriver@dcf5] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:911:11 [AppiumDriver@dcf5] at wrapped (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13) [AppiumDriver@dcf5] at retry (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13) [AppiumDriver@dcf5] at retryInterval (/Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10) [AppiumDriver@dcf5] at /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:816:7 [HTTP] <-- POST /wd/hub/session 500 47190 ms - 1008 [HTTP]

how to solve that problem? thanks

KazuCocoa commented 3 months ago

showXcodeLog might show xcodebuild details.

[XCUITestDriver@f488 (4568c6c6)] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[XCUITestDriver@f488 (4568c6c6)] Waiting up to 60ms for WebDriverAgent to start
[XCUITestDriver@f488 (4568c6c6)] WebDriverAgent successfully started after 466ms
[XCUITestDriver@f488 (4568c6c6)] Event 'wdaSessionAttempted' logged at 1711338815017 (10:53:35 GMT+0700 (Western Indonesia Time))
xcodebuild build-for-testing test-without-building -project /Users/muhammad.azis/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/muhammad.azis/Library/Developer/Xcode/DerivedData/WebDriverAgent-dsfxgjmdqbghisayuxxhmrmodqmw -destination id=F53B60AD-EFD2-4804-9ABC-4C65275EB692 IPHONEOS_DEPLOYMENT_TARGET=17.2 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO

is xcodebuild appium ran. Perhaps you could run the command directly (without appium) if it works. I guess the xcodebuild took longer time to complete. For example, typically, xcodebuild is pretty slow on Intel Mac.

EibyShen commented 1 month ago

The basePath should be '/', not '/wd/hub' when it is Appium 2.X.