-
Notifications
You must be signed in to change notification settings - Fork 92
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
All requests made with Alamofire manager cancelled after adding InterceptingProtocol #5
Comments
Thanks for noticing! 🍷 |
I'm having this problem while using the new suggested way of adding the protocol class with |
I fixed this by using Edit: Scratch that. This doesn't fix it. This allows the requests to work, but stops intercepting the requests. |
Are you using anything else that do something with |
Here is the code that is setting up my configuration:
The configuration's
I'm going to continue attempting to debug this this morning, but I'm pretty lost at the moment. I'm also using the commit tagged for version |
It seems that
|
@AnthonyMDev I will investigate that. Could you provide me with a sample project? |
Hi everyone, I came back to this issue recently and found out that cancellation happens because of The following code: let manager = Alamofire.Manager()
manager.request(.GET, "https://httpbin.org/get").response { _, _, _, error in
print(error)
} will always fail with In order for I'm closing this issue as it has been tested with retained |
After I've added ResponseDetective to my project and assigned InterceptingProtocol to protocol classes of configuration used to create Alamofire manager
all my requests are canceled.
ResponseDetective prints requests and responses correctly, but Alamofire manager response callback is always called with the following error:
The text was updated successfully, but these errors were encountered: