question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket hang up with new iOS 15.4 trying to get screenshots

See original GitHub issue

The 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

appium.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
KazuCocoacommented, Mar 20, 2022

Appium 1.22.3 includes this change.

0reactions
ThorNtHucommented, Mar 22, 2022

Thanks for your prompt, this problem disappears after updating WDA.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found