-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
Comments
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. |
btw, I don't observe where Appium java client is used in the stacktrace. Are you sure it is used at all? |
@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 =>
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. |
Is the issue reproducible locally? If not then it is something that must be reported to saucelabs. |
Has anyone figured this out yet? I'm facing the same issue after upgrading to v9. My test gets logcat repeatedly and after a while (e.g. 172 times in a recent run I'm looking at), it fails on a call to
|
I've checked logs on Saucelabs and it looks like the client closes the session on its own accord:
|
Hi @vaind, my appologies for not replying here with the solution. I went from: return new AndroidDriver(new URL(appiumServerUrl), capabilities); to return new AndroidDriver(AppiumClientConfig.defaultConfig().baseUrl(new URL(appiumServerUrl)), capabilities); This way selenium is using http 1.1 protocol and I do not have any issues. |
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
Exception Stacktraces
stack trace
Thanks in advance.
The text was updated successfully, but these errors were encountered: