Status err code 500

@Aleksei
The following exception was thrown during test execution:

Status Code: 500 - Error while starting appium session: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: Cannot call proxyCommand without WDA driver active Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.”},“sessionId”:null}

was it because of application or anything else? I’m using sauce labs cloud and in that I encountered above exception while starting the execution. Device isn’t picked up for execution and and at-last it shows as err message like above. From the latest build only I’m facing this kind of issue. In the previously provided build, I didn’t faced this issue.

In real devices, app was installed and launched via appium inspector after I start the session. But, after launch app is not screened with appium inspector for the object spy. Appium Desktop is just loading for very long time. (Appium Desktop - 1.18.0v)

While running it on eclipse with my real devices, got below logs with the latest app which my dev team provided. With the perviously provided build, its working fine,

e[35m[Xcode]e[39m 2020-08-04 10:12:11.601338+0530 WebDriverAgentRunner-Runner[277:6701] Enqueue Failure: Failed to get system application: Timed out while fetching attributes ‘XC_kAXXCAttributeSystemAppApplication’ for Device system-wide element. /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentRunner/UITestingUITests.m 38 1
e[35m[Xcode]e[39m
e[35m[Xcode]e[39m 2020-08-04 10:13:16.623525+0530 WebDriverAgentRunner-Runner[277:6701] Enqueue Failure: Failed to get list of active applications: Timed out while fetching attributes ‘XC_kAXXCAttributeFocusedApplications’ for (null). /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentRunner/UITestingUITests.m 38 1
e[35m[Xcode]e[39m
e[35m[WD Proxy]e[39m Got response with status 400: {“value”:{“error”:“element not visible”,“message”:“No applications are currently active”,“traceback”:"(\n\t0 CoreFoundation 0x00000001863d29a4 + 252\n\t1 libobjc.A.dylib 0x00000001855ab9f8 objc_exception_throw + 56\n\t2 WebDriverAgentLib 0x0000000102596b08 +[FBApplication fb_activeApplicationWithDefaultBundleId:] + 2456\n\t3 WebDriverAgentLib 0x0000000102577a5c -[FBSession activeApplication] + 244\n\t4 WebDriverAgentLib 0x00000001025830d4 +[FBSessionCommands currentCapabilities] + 124\n\t5 WebDriverAgentLib 0x0000000102582f90 +[FBSessionCommands sessionInformation] + 288\n\t6 WebDriverAgentLib 0x0000000102580330 +[FBSessionCommands handleCreateSession:] + 2776\n\t7 WebDriverAgentLib 0x0000000102556cf8 -[FBRoute_TargetAction mountRequest:intoResponse:] + 212\n\t8 WebDriverAgentLib 0x0000000102543e44 __37-[FBWebServ…
[debug] e[35m[W3C]e[39m Matched W3C error code ‘element not visible’ to ElementNotVisibleError
[debug] e[35m[XCUITest]e[39m Failed to create WDA session (No applications are currently active). Retrying…
e[35m[Xcode]e[39m t = 194.01s Unable to monitor event loop
e[35m[Xcode]e[39m t = 194.02s Unable to monitor animations

Thanks in advance.

Hi

  1. Did you complete real device config mentioned in link error? Appium decktop app should be also configured in same way to work with real iOS devices.
  2. Try first with your own real device.

I never tried SaurceLab so cant help more to troubleshoot.

https://github.com/appium/appium/issues/13580 - From here, got the reason for it and has been resolved.

Thanks :slight_smile: