4
I was developing an app using Clgeocoder, and suddenly it stopped working without me making any changes to the code, and started returning the following error.
ERROR /Sourcecache/Protocolbuffer/Protocolbuffer-187.4/Runtime/Pbrequester. m:825 server (https://gsp-ssl.ls.apple.com/fwdgeo.arpc) returned error: 500 /Sourcecache/Protocolbuffer/Protocolbuffer-187.4/Runtime/Pbrequester. m:825 server (https://gsp-ssl.ls.apple.com/fwdgeo.arpc) returned error: 500 2014-05-22 21:52:34.278 myapp[1626:60b] User canceled search 2014-05-22 21:52:34.282 myapp[1626:60b] User searched for
My code
- (void)handleSearch:(UISearchBar *)searchBar {
NSLog(@"User searched for %@", srBar.text);
[searchBar resignFirstResponder];
NSString *location = srBar.text;
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder geocodeAddressString:location
completionHandler:^(NSArray* placemarks, NSError* error){
if (placemarks && placemarks.count > 0) {
CLPlacemark *topResult = [placemarks objectAtIndex:0];
MKPlacemark *placemark = [[MKPlacemark alloc] initWithPlacemark:topResult];
MKCoordinateRegion region = self.mapaView.region;
region.center = placemark.region.center;
region.span.longitudeDelta /= 8.0;
region.span.latitudeDelta /= 8.0;
[self.mapaView setRegion:region animated:YES];
[self.mapaView addAnnotation:placemark];
}
}
];
}
Asked also at Soen.
lee, if you happen to find a solution on Soen, please post it here; and vice versa ;)
– brasofilo
I can not know if apple is solving or not, anyway I reported the error by BUG REPORTING (17028449)
– leedream
the problem has already been stabilized, I just tested and this ok.
– leedream
This question seems to be discounted because it was an error on Apple’s servers, as reported in the question on Soen.
– brasofilo
Funny that in SOEN is protected by the community.
– Jorge B.
This question is being discussed in the meta
– Jorge B.
The same answer I posted on Soen I answered on Sopt, I do not know if it is possible but I would like the question to be removed from Sopt was a mistake on my part, and I believe it is generating unnecessary comments, since in turn it is being moderated on Soen.
– leedream
leedream relax we’re just debating to make SOPT better...
– Jorge B.
leedream, don’t Worry, here we discuss content, not people ;) And actually the doubt that this post raises is quite interesting, so much so that opened a meta post on Soen as well to know what the community there thinks.
– brasofilo
Boltclock killed two birds at the Meta, the server is returning one error 500.
– brasofilo
I didn’t quite understand the answer from Boltclock, @brasofilo. It means that the question should be closed and deleted?
– bfavaretto
@bfavaretto, well, I understand that he does not believe that it is useful as "flag post" that this problem occurred... Closed yes, because the problem cannot be repeated; excluded, not necessarily.
– brasofilo
Note that
placemarks && placemarks.count > 0
can be written only asplacemarks.count > 0
.– user7835
According to the finish line discussion, I think it’s time to close.
– Maniero