-1103 Error Domain=NSURLErrorDomain Code=-1103 "resource exceeds maximum size" iOS 13

Solution 1:

With the help of the Slack community, we find the answer is that on iOS13, it is not allowed to add a body in GET request. To make it work again, we can either switch to a POST/PUT request or add body value via url parameters of the GET request.

Solution 2:

Pass query parameters in GET request like the following:

let parameters: Parameters = [
    "param": value
]
Alamofire.request(urlString, method: .get, parameters: parameters, encoding: URLEncoding.queryString)

Solution 3:

I have face same issue and find out the solution.

You can't pass parameter in body while using GET.

Either use POST method if API support or pass it in URL like below.

AnyURL?Parameter=Value&Parameter=Value