-
Notifications
You must be signed in to change notification settings - Fork 197
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
No logs seen on emulators with iOS >= 15 and url in the form https://asfsaf-test-y5adsfas3a-ew.a.run.app with a valid ssl cert #1268
Comments
Thanks for the report @shadowsheep1, but I'm not sure whether or not this issue is related to Proxyman. From your screenshot, I suppose that the certificate is properly installed on iOS 15.5 because you got the 401 Unauthorized Response Code (and you're able to see the entire HTTPS Response). To verify why there is no request on Proxyman:
|
Hi @NghiaTranUIT If you mean if the app makes the requests to the webserver, even without |
If I change the api endpoint with the production one, I can get the logs: There's some proxyman log I can send you with a pm? It seems that this behaviour is occurring only with the test url (with a valid ssl cert) and an iOS 15.5 emulator. |
@shadowsheep1 can you open Proxyman and try to capture the test traffic ( Then paste on the Terminal app, to see if Proxyman can capture it.
|
@NghiaTranUIT this way is working I can see the request under proxyman domains section |
So, your test URL is working and Proxyman can capture it. If you don't mind, please try iOS 15.5 on Physical devices or different type of Simulator (such as iPad) |
@NghiaTranUIT yup, but already with an emulator with iOS < 15 I can capture my test endpoint with Proxyman. |
Yes, I suppose so if this test URL displays on Proxyman from iOS 14, there is no reason that it doesn't appear on Proxyman. Except its an error, but you've confirmed that your app is still working. |
@NghiaTranUIT on a Physical device running iOS 15 with Proxymen App I got no error. I'm able to proxy the request. |
My app is working fine. I debug it with Proxyman from more than 2 years. 🍻 |
So, everything is working isn't it? |
@NghiaTranUIT all except the combinatioin of |
Hi, I'm also facing exactly the same issues. One thing that I can confirm the same between my case and @shadowsheep1 is that when the proxy tries to send the I can confirm that this issue only happens in the iOS 15 simulator + certain domain combinations, not in the Proxy man itself. I've tried to use another proxy and the result is also the same. The only solution that I find working is just by downgrading the iOS simulator to < 15 and everything working now. Hope this will give some insight. Thanks! |
@timothy-pratama Is your iOS app a native app, or Flutter, React Native? |
It's native apps, and the weird thing is sometimes the CONNECT request is successful, and sometimes the CONNECT request keeps getting the SSL handshake failed. And sometimes the CONNECT request is only successful when it's fresh install only. But I'm certain that this issue is not caused by Proxy Man since I've tried using other proxy and get the same result as well 🙏🏻 From @shadowsheep1 screenshot in this issue's description, we can see that the first traffic logged to proxy man is actually the |
I can confirm that. I'll try to file an issue at Apple side. |
@timothy-pratama do you have a public url I can share with apple with a sample app to test it? |
@timothy-pratama are you using kotlin-native (ktor) for networking? |
@shadowsheep1 unfortunately I don't have any public URL with a sample app to test it as well 🙏🏻. I'm using native swift for the networking (using alamofire) |
If Charles Proxy can capture this traffic, it means it's a bug from Proxyman. if not, maybe it's from Apple side 😄 |
Proxy Man can only capture the |
Hey guys, I suppose that Alamofire/URLSession might use the cached response version from disks, so it never hits the server => Proxyman never catches it. If you don't mind, please delete your app on the Simulator and try again. |
Actually I have tried deleting the app before. The logs will be shown only for the first time running the app (fresh install). After that, the next time I start my apps, the logs will no longer appears in proxy man again and I will get the same SSL handshake failed error. I have also suspected there is a cache mechanism that causes this, so I have tried to open a screen in the app that has not been opened before (so I assume there should be no cache yet for that screen), but it still loaded successfully even though the log doesn't appear in Proxy Man I'm still pretty sure it's something wrong in iOS 15 simulator because @shadowsheep1 has tried using a physical device running iOS 15 and doesn't get this error #1268 (comment) Thank you for replying @NghiaTranUIT 🙏🏻 |
@timothy-pratama are you still experiencing this issue? Actually today I'm able to proxy traffic with my iOS 15 simulator 🤷♂️ |
Some users report they have the same issue on iOS 15 Simulator too. It also happens on Charles Proxy. The only way to fix it is using the iOS Real Devices or using the iOS 14 Simulator. |
@NghiaTranUIT I know,but today the issue's disappeared to me. I also filed an issue to Apple with Feedback Assistant, maybe they could help. The fun fuct is that today the issue is no more an issue for my URL. 🤷♂️ (I'm this issue OP) |
Yes, I'm still facing it. But as @shadowsheep1 mentioned, this bug only happens in iOS 15 Simulators and it's intermittent too. So when the bug is gone, it will be working fine. But once the bug comes back, it will be buggy again for quite some time. Not sure though what is the trigger |
As mentioned above I filed an issue to Apple Dev Tools with Feedback Assistant posting device log, sample app, a video showing the issue and some more fancy stuff :) Let's see what they say. if they answer before iOS 16 😂, hoping iOS 16 doesn't have this very same bug. |
iOS 16 beta (Physical device) is buggy too 😄 #1293 |
Any news on this regard? It's really starting to look like a deal breaker here... |
Sorry, @piercifani it's not a bug of Proxyman or Charles. It's the bug from iOS Simulator. If you use iOS Physica devices or iOS 14, the issue is gone 👍 |
Hello @NghiaTranUIT, Yes but I think that's not something they're going to fix. Have you considered spend a DTS ticket in order to have someone look at this? This way you could:
Right now, this bug kind of defeats the purpose of Proxyman, and I know this is no fault of Proxyman... but still... |
Just chiming in here that I'm running into this as well. One build & run will work fine on the Simulator, and then the same (with no changes) will fail (networking works fine, but not capture in Proxyman). Seemingly happened around Xcode 13.4, but I'm not 100% sure. Interestingly, opening the same domain in Safari does capture it in Proxyman. Would be nice if a DTS and Feedback (Radar) was opened, but a workaround would be great given iOS 16 seems to be worse off currently. |
@robmathers You can confirm it by using with physical devices @robmathers. All traffic should be captured. On the other hand, some are missing on iOS Simulator. Test with Charles Proxy too. To would around with iOS Simulator, I highly recommend using Atlantis framework: https://github.com/ProxymanApp/atlantis |
Thanks, I can confirm it does work as usual with physical devices, but not working with simulators is a big bug. Just hoping that we can collectively raise this issue with Apple to make some noise 🤷♂️ The framework is a good workaround, but not necessarily a great option to require a whole new dependency, especially in a work project. Not your fault I realize, but definitely good if we could get a fix sorted via Apple. |
Proxyman version? (Ex. Proxyman 1.4.3)
3.6.0 (30600)
macOS Version? (Ex. mac 10.14)
12.4
Steps to reproduce
Use Xcode 13.4.1 and an emulator with iOS 15.5 (certificates all right, on mac and on device).
With an iOS 15.5 devices no log are captured. Sometimes all start successfully, but suddenly there something wrong with the inspection. And no more logs are captured.
With and iOS with iOS 14.0 logs are captured.
Expected behavior
See logs of my application in any iOS version.
Gut feeling
It seems that the problem is the test url that is in the form
https://asfsaf-test-y5adsfas3a-ew.a.run.app
(but the certificate is valid, and in fact all works fine on emulators with iOS < 15)The text was updated successfully, but these errors were encountered: