Open lorenzwalthert opened 3 years ago
Hi,
I got an error also caused by curl::curl_fetch_memory()
. Similarly, I was geocoding thousands of observations and in the middle of the processes, mine failed as follows:
Error in `map()`:
In index: 11566.
Caused by error in `curl::curl_fetch_memory()`:
Timeout was reached: [maps.googleapis.com] Resolving timed out after 10012 milliseconds
So far, I have not been successful in finding the root of the problem. Therefore, I would appreciate any help!
I was geocoding thousands of observations and in the middle of the process, it failed like this:
I think it the problem is that this call to
httr::GET()
is not wrapped in atryCatch()
or similar. Then, the error message seems to come from here in the httr source code. Suggestion to fix this:Wrap the
httr::GET()
call referenced above intotryCatch()
(orrlang::with_handlers()
) and return the default for the failed output withreturn_failed_geocode()
. I can provide a PR if interested.