私は使用しています
NSMutableURLRequest *request = [self requestWithMethod:@"GET" path:@"paths/" parameters:params];
AFJSONRequestOperation *jsonRequest = [AFJSONRequestOperation
JSONRequestOperationWithRequest:request success:^(NSURLRequest *request,
NSHTTPURLResponse *response, id JSON) {
// something to do here in case of success
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON
{
// and something there in case of failure
}
ブラウザを使用して確認できるように、ステータスコード400JSON
と、このエラーに関する情報を含む (有効、確認済み) を含む1 つのケースを除いて、すべて正常に動作します。しかし、JSONRequestOperationWithRequest
呼び出しは成功をブロックし、JSON
応答はゼロです。何が原因でしょうか?