Appium Session is Getting Terminated

Hi,

I am automating some ipad scripts using an ipad device from saucelab, first I am making a connection between Appium Server and Saucelab to inspect any element of application but the problem here is, once is it connected, after 5 mins the session is getting terminated automatically, I have tried with Appium version 1.21.0, 1.20.0 but facing same issue

https://appium.io/docs/en/writing-running-appium/caps/ -> increase newCommandTimeout

I Increased the newCommandTimeout value but facing the same issue again

can you please help?, it is urgent. I increased the timeout value but still facing he same issue

  1. logs
  2. try ask at Saucelab forum

Not sure about the logs, do you need any logs for the issue?. I raised ticket in Sauce Lab, they told the issue is with Appium Side.

we need logs to understand where problem is and maybe help you with advice…

Only this much data I can get from Logs,

[info] e[35m[Appium]e[39m Welcome to Appium v1.20.2
[info] e[35m[Appium]e[39m Non-default server args:
[info] e[35m[Appium]e[39m relaxedSecurityEnabled: true
[info] e[35m[Appium]e[39m allowInsecure: {
[info] e[35m[Appium]e[39m }
[info] e[35m[Appium]e[39m denyInsecure: {
[info] e[35m[Appium]e[39m }
[info] e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:4723

but I have attached the screenshot of my issue, please check.

If you see the screenshot, I am just clicking the “Medical Events(Highlighted as blue in screenshot)” button, after sometime the session is getting terminated.

so connection closing between Appium GUI and Appium server which running in SauceLab. This is question to SauceLab how to avoid it while you using Appium GUI to inspect your app.

I contacted Sauce lab support team, they told, the issue is not happening in Live session of Saucelab, it is happening only with Appium when try to inspect. so please hep me if any other way to resolve this issue

Try with real device locally to reproduce