ios AFNetworking 3.0 报错 : *** Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:],
AFNetWorking[5533:254172] *** Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:], /Users/caiyueming/Desktop/learn/AFNetWorking/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m:353 2015-12-30 17:24:18.378 AFNetWorking[5533:254172] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException‘, reason: ‘Invalid parameter not satisfying: URLString‘
解决 NSString *url = @"http://c.m.163.com/nc/article/headline/T1348647909107/0-20.html?from=toutiao&size=20&passport=&devId=UJvvQhqbkORVSYk9Uc%2FI9A%3D%3D&lat=omT70CuIO0h3YxQVX4rVCA%3D%3D&lon=MGWjad11EwQbxbC6JR5T6w%3D%3D&version=5.4.5&net=wifi&ts=1451464456&sign=BnW69NOoXlUlJbUQorg5rtjbztbMtwh%2BYmlQL7%2F2kPh48ErR02zJ6%2FKXOnxX046I&encryption=1&canal=netease_gw HTTP/1.1"; 解决: NSString *str1 = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
文章来自:http://www.cnblogs.com/Iceing/p/5089546.html