ropensci / rnoaa

R interface to many NOAA data APIs
https://docs.ropensci.org/rnoaa
Other
330 stars 84 forks source link

Some GHCND urls fail occassionally #110

Closed sckott closed 9 years ago

sckott commented 9 years ago

Build in a retry maybe, try perhaps 2 or 3 times, then fail more gracefully than

 Error in curl::curl_fetch_memory(url, handle = handle) : 
  Failure when receiving data from the peer 
jordansread commented 8 years ago

@sckott just noticing that you don't use times for your retry. Can this get stuck in a loop? https://github.com/ropensci/rnoaa/blob/67ac0eeda4ae7fa566f75500915ce25f516a53ea/R/ghcnd.R#L215

sckott commented 8 years ago

thanks - will have a look

sckott commented 8 years ago

@jread-usgs using times now :) thanks for reminding me.

jordansread commented 8 years ago

:+1: