Socket hang up with new iOS 15.4 trying to get screenshots
See original GitHub issueThe problem
Once updated iOS from 15.2 to 15.4 on real devices, the get screenshot function doesn’t work anymore.
Environment
- Appium version (or git revision) that exhibits the issue: 1.22.2
- Last Appium version that did not exhibit the issue (if applicable): 1.22.2 (with iOS 15.2)
- Desktop OS/version used to run Appium: macOS Monterey 12.3
- Node.js version (unless using Appium.app|exe): 17.7.2
- Npm or Yarn package manager: npm 8.5.2
- Mobile platform/version under test: iPhone 11/iPhone Xr iOS 15.4
- Real device or emulator/simulator: Real devices
- Appium CLI or Appium.app|exe: Appium CLI
Details
The problem started once update iOS from 15.2 to 15.4. Updated Xcode too to 13.3 to handle with new iOS.
While trying to get screenshot at the end of a test, the Appium server throws an exception, the message:
An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
We experienced similar issues with iOS 15.1 and Appium 1.22 (desktop), solution was using Appium CLI 1.22.2, but now it the last stable version.
We found some related issues from the past, maybe it is the same problem, a couple of they are related to this 15262
Link to Appium logs
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Appium unable to take screenshot on xCode 13.3 and iOS 15.4
I tried checking what the cause could be and found exact similar problem posted here Socket hang up error while taking screenshot in...
Read more >APNs socket hang up error. | Apple Developer Forums
From 2018/02/09, socket hang up occasionally happens when connecting to APNs. It is still occasionally still. The connection method to APNs is TLS...
Read more >Error: Socket Hang Up Postman
在最近使用postman的时候,报错 Error: socket hang up. ... Each time I tried to send a POST request through Postman I cannot get a response and...
Read more >Getting server error( socket hang up ) - Appium Discuss
Hi All, I am getting the below error while I am running the script in emulator ( Real device was fine ) Unable...
Read more >Changelog - Proxyman
Switch App Language in the Preference. Improve UI for iOS/Simulator/Android/Emulator setup guide. Bugs. Fixed: Incorrect Chinese (Simplified) localized ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Appium 1.22.3 includes this change.
Thanks for your prompt, this problem disappears after updating WDA.