NSError *underError = error.userInfo[@"NSUnderlyingError"]; NSData *data = underError.userInfo[AFNetworkingOperationFailingURLResponseDataErrorKey]; NSString *errorStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; CXLog(@"%@", errorStr);