Error returning Clgeocorder address

Asked

Viewed 173 times

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 ;)

  • I can not know if apple is solving or not, anyway I reported the error by BUG REPORTING (17028449)

  • the problem has already been stabilized, I just tested and this ok.

  • 2

    This question seems to be discounted because it was an error on Apple’s servers, as reported in the question on Soen.

  • 1

    Funny that in SOEN is protected by the community.

  • 1

    This question is being discussed in the meta

  • 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 relax we’re just debating to make SOPT better...

  • 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.

  • Boltclock killed two birds at the Meta, the server is returning one error 500.

  • I didn’t quite understand the answer from Boltclock, @brasofilo. It means that the question should be closed and deleted?

  • @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.

  • Note that placemarks && placemarks.count > 0 can be written only as placemarks.count > 0.

  • According to the finish line discussion, I think it’s time to close.

Show 9 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.