kasketis / netfox

A lightweight, one line setup, iOS / OSX network debugging library! 🦊
MIT License
3.68k stars 374 forks source link

Integration with Alamofire in iOS 9 causes RTO #124

Closed edopelawi closed 2 years ago

edopelawi commented 6 years ago

The title says it all. I tried to configure Netfox 1.11.1 with Alamofire 4.6.0 using the workarounds here, with exception of NSURLSessionConfiguration's change from defaultSessionConfiguration() to default in Swift 4.

This issue is not apparent when I try it in iOS 9 and higher, or when I didn't call the NFX.sharedInstance().start in iOS 9. The issue still persist when I tried newer version of Alamofire.

Does anyone have this issue too? Any help would be appreciated! 😁

edopelawi commented 6 years ago

Wait, turns out the issue gone when I downgraded to 1.11.0.

sveinnv commented 6 years ago

I'm having the same issues, downgrading to 1.11.0 fixes it.

teemu-rossi commented 6 years ago

I faced the same issue using netfox 1.11.1 and AFNetworking 3.1.0 on iOS 11.4.1.

Janglinator commented 6 years ago

Would you be able to try out release 1.12.1 (just do a pod update) and let me know if this fixes it?

teemu-rossi commented 6 years ago

My issue still remains even with 1.12.1. [Error] POST '(null)' (0): Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x1d4e58a80 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://***/, NSErrorFailingURLKey=https://***/, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}

Janglinator commented 6 years ago

Thank you, I'll take a look.

I'm surprised iOS 9 is still being supported 😆

RolandasRazma commented 6 years ago

has nothing to do with iOS 9, we have same timeout issue (iOS10 min target) with netfox above v1.10.5

volatilegg commented 5 years ago

Hi, do we have any news on this one, I got the same issue, could this be because of add SSL pinning support? 🤔

https://github.com/kasketis/netfox/commit/fb1e48d2b3d7720757de23bc095a9577a70d8b84

iamqk commented 5 years ago

swizzleDefault() in NFXHelper.swift combined with Alamofire? cause iOS 9 simulator request time out pod 'netfox', '1.12.1' pod 'Alamofire', '4.7.3'

NoIf728 commented 5 years ago

Hi, do we have any news on this one, I got the same issue, could this be because of add SSL pinning support? 🤔

fb1e48d

I think so, there is no problem with the HTTP request. I deleted public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) in NFXProtocol.swift, then HTTPS request won't time out

vGubriienko commented 2 years ago

Anybody still have the issue on latest version?

vGubriienko commented 2 years ago

Closed due to inactivity

mikechouto commented 2 years ago

@vGubriienko Hi, I'm still having this issue on newest version, upload will timeout on newest version, i've tried to use older version 1.10.3 and it works, seems there's still something wrong.