error handler modified

NearBySearch request function unfinished.