Json AFNetworking获取web服务内部服务器错误(500)

Json AFNetworking获取web服务内部服务器错误(500),json,web-services,ios8,xcode6,afnetworking,Json,Web Services,Ios8,Xcode6,Afnetworking,我试图使用AFNetworking调用GetWeb服务,并返回内部服务器错误(500)错误。同样的web服务在Android中运行良好 PFB我的代码和错误消息 NSURL *url = [NSURL URLWithString:@GET_HOME_SLIDERS]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; AFHTTPRequestOperation *operation = [[AFHTTPRequestOper

我试图使用AFNetworking调用GetWeb服务,并返回内部服务器错误(500)错误。同样的web服务在Android中运行良好

PFB我的代码和错误消息

NSURL *url = [NSURL URLWithString:@GET_HOME_SLIDERS];
NSURLRequest *request = [NSURLRequest requestWithURL:url];

AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
operation.responseSerializer = [AFJSONResponseSerializer serializer];

[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {

    NSLog(@"%@", (NSDictionary *)responseObject);

} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
    NSLog(@"Error: %@", error);
}];

[operation start];
错误描述为:

错误:Error Domain=.Error.serialization.response Code=-1011“请求失败:内部服务器错误(500)”UserInfo=0x7fb9f243d9a0{.serialization.response.Error.response={URL:}{状态代码:500,标头{ “接受范围”=字节; 连接=“保持活动”; “内容长度”=880; “内容类型”=“应用程序/json”; 日期=“2016年6月18日星期六06:51:54 GMT”; Server=“nginx/1.10.1”; “设置Cookie”=“slim_session=a%3A1%3A%7Bs%3A10%3A%22slim.flash%22%3Ba%3A0%3A%7B%7D%7D;path=/;expires=Sat,2016年6月18日07:11:54 UTC”; “X-Served-From-Cache”=是; }},NSErrorFailingURLKey=,.serialization.response.error.data=,NSLocalizedDescription=请求失败:内部服务器错误(500)}

请帮忙