If the network connection is lost while the user is filling out the report, the app will crash when trying to post the report. The AFHTTPRequest operation will time out, then get handed to postFailedWithError.
However, this function still tries to read the error message from the response, which is nil, because no network activity happened. The app crashes with a NSInvalidArgumentException on line 202
If the network connection is lost while the user is filling out the report, the app will crash when trying to post the report. The AFHTTPRequest operation will time out, then get handed to postFailedWithError.
However, this function still tries to read the error message from the response, which is nil, because no network activity happened. The app crashes with a NSInvalidArgumentException on line 202