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

[Bug] Atlantis on iOS 16 could not connect to Proxyman macOS app due to "Connection reset by peer" #121

Open
NghiaTranUIT opened this issue Nov 19, 2022 · 4 comments
Assignees
Labels
Done This Ticket is done

Comments

@NghiaTranUIT
Copy link
Member

Description

If we use Atlantis on an iOS 16 Physical device, most of the time the Atlantis service cannot successfully connect to Proxyman macOS app.

Always get the following error:

[Atlantis] ❌ Connection to Proxyman app is failed, error=POSIXErrorCode(rawValue: 54): Connection reset by peer

Reason: We suspect that NSNetServiceBrowser is deprecated, so it might not work on iOS 16. NSNetServiceBrowser is a legacy framework for Bonjour Connection.

To workaround, use the iOS 16 Simulator.

Steps to Reproduce

  1. Use iOS 16 physical device and integrate Atlantis framework
  2. Start the app

Current Behavior

  1. Observe that the connection is failed ❌

Expected Behavior

  • The connection should work

Environment

  • App version: Proxyman 3.13.0 + Atlantis 1.19.0
  • macOS version: macOS Monterey
@NghiaTranUIT NghiaTranUIT added this to the Atlantis 2.0.0 milestone Nov 19, 2022
@NghiaTranUIT NghiaTranUIT self-assigned this Nov 19, 2022
@NghiaTranUIT
Copy link
Member Author

@smaky
Copy link

smaky commented Jan 2, 2024

Still this bug exist in iOS 17(simulator and real device).

Version of Atlantis: 1.23.0
Version of Proxyman: 4.15.0

Step to reproduce:
Run app with atlantis on simulator (iOS 17) and stop from Xcode, then run another app instance on another simulator (diferent device type but the same iOS) and also stop, then come back to previous (from the beginning) run app instance.

I am not able to connect to Proxyman. I am getting error:

---------- 🧊 Atlantis is running (version 1.23.0)
---------- Github: https://github.com/ProxymanApp/atlantis
[Atlantis] Looking for Proxyman app in the network...
[Atlantis] 🔎 Found Proxyman at HostName = host1.local.
[Atlantis] ✅ Connect to host1.local.
[Atlantis] Connection established
[Atlantis] Flush 7 items
[Atlantis] ❌ Connection to Proxyman app is failed, error=POSIXErrorCode(rawValue: 54): Connection reset by peer
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame header: POSIXErrorCode(rawValue: 57): Socket is not connected
[Atlantis][Error] Error sending frame content: POSIXErrorCode(rawValue: 57): Socket is not connected

@NghiaTranUIT
Copy link
Member Author

NghiaTranUIT commented Jan 8, 2024

@smaky I'm working on this issue: May I ask:

Run app with atlantis on simulator (iOS 17) and stop from Xcode, then run another app instance on another simulator (diferent device type but the same iOS) and also stop, then come back to previous (from the beginning) run app instance.

Does it happen if we only open 1 app 🤔 ?

For example:

  1. Launch your app with iOS Simulator
  2. Verify if Atlantis can discover and connect to Proxyman.

I've tested and it works fine on iOS 17.2.

Screenshot 2024-01-08 at 10 45 57

@NghiaTranUIT
Copy link
Member Author

@smaky I tried to follow your instructions but couldn't reproduce it

1-converted.mov

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

No branches or pull requests

2 participants