Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Appium Client 9.0.0] Connection closed locally #2088

Open
darkwilly08 opened this issue Dec 28, 2023 · 4 comments
Open

[Appium Client 9.0.0] Connection closed locally #2088

darkwilly08 opened this issue Dec 28, 2023 · 4 comments

Comments

@darkwilly08
Copy link

darkwilly08 commented Dec 28, 2023

Description

After upgrading appium to version 9.0.0 and selenium to 4.14.1 I am facing some unexpected connection close during test execution.

The same tests using appium 8.6.0 with selenium 4.13.0 works perfectly fine.

Environment

  • Java client build version or git revision if you use some snapshot: openjdk 17.0.2 2022-01-18
  • Appium server version or git revision if you use some snapshot: saucelabs > appium 2.0.0
  • Desktop OS/version used to run Appium if necessary: Windows 10
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:
  • Mobile platform/version under test: Web/Chrome 120

Exception Stacktraces

stack trace

 Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

Thanks in advance.

@darkwilly08 darkwilly08 changed the title [] [Appium Client 9.0.0] Connection closed locally Dec 28, 2023
@mykola-mokhnach
Copy link
Contributor

We had a similar issue with our e2e tests while switching to the newer selenium client. Enforcing HTTP version to 1.1 on the client side helped to resolve it. So, make sure your client either uses the default connection config or does the same trick if it is customized.

@mykola-mokhnach
Copy link
Contributor

btw, I don't observe where Appium java client is used in the stacktrace. Are you sure it is used at all?

@darkwilly08
Copy link
Author

@mykola-mokhnach my apologies, end of year is too close.

You are absolutely right. For web, we are using selenium directly.

Let me share the stack trace on Android. There you can see java client is used =>

io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:307)

It seems that the issue is not happening in Appium but in selenium 4.14.1. With the downgrade of Appium to 8.x I also downgraded selenium to 4.13.0 and that was the reason the issue disappeared.

@mykola-mokhnach
Copy link
Contributor

Appium server version or git revision if you use some snapshot: saucelabs > appium 2.0.0

Is the issue reproducible locally? If not then it is something that must be reported to saucelabs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants