将facebook照片网址> 720p发送到服务器时出现内部错误500

时间:2016-06-29 12:29:53

标签: objective-c facebook

我正在尝试发送超过700 px的照片网址。但是当我通过API发送数据时。有些照片正在上传,但另一张正在显示500内部错误。

 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.requestSerializer = [AFJSONRequestSerializer serializer];
[manager.requestSerializer setValue:[@"Bearer " stringByAppendingString:[[NSUserDefaults standardUserDefaults]valueForKey:@"authKey"]] forHTTPHeaderField:@"Authorization"];
NSString *urlString=[API Link =%@",fbPic];
   [manager GET:urlString parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject)
{
    NSInteger statusCode = operation.response.statusCode;
}failure:^(AFHTTPRequestOperation *operation, NSError *error)
{ NSLog(@"Error: %@", error);
    NSInteger statusCode = operation.response.statusCode;  
}
];

这是错误

status code: 500, headers {
"Cache-Control" = "no-cache";
"Content-Length" = 175;
"Content-Type" = "text/plain; charset=utf-8";
Date = "Wed, 29 Jun 2016 12:04:03 GMT";
Expires = "-1";
Pragma = "no-cache";
Server = "Microsoft-IIS/7.5";
"X-AspNet-Version" = "4.0.30319";
"X-Powered-By" = "ASP.NET";} 

1 个答案:

答案 0 :(得分:0)

HTTP 500错误表明错误来自服务器。您应该检查服务器开发者以获取更多详细信息