Closed iOSDeveloperL closed 2 years ago
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
this is still an issue.
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
unfortunately this is still an issue.
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
still an issue.
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
this is still an issue.
@iOSDeveloperL I'm seeing the same behavior. Did you ever find a solution to this issue?
I want to test our error handling and was hoping to use Mocker for it. We use Alamofire (but the bug is reproducible with URLSession).
Without Alamofire (pseudo code)
po error
^ this should have been the error I passed but instead I received a
.sessionTaskFailed
error.I did spend some time looking into this and the finishRequest inside MockingURLProtocol does get the mock.requestError properly but from there i'm not sure where it goes.
In the actual project i'm using Alamofire but there too i'm getting similar error. The requestError in that case was
let error: AFError = AFError.responseValidationFailed(reason: .unacceptableStatusCode(code: 404))
.the returned error is