ropensci / rnoaa

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

Error: (500) when fetching data with function 'ncdc' #341

Closed fengyujie16 closed 4 years ago

fengyujie16 commented 4 years ago

When I fetch data using the following code: out <- ncdc(datasetid=dtaid,stationid = stnid, startdate = s_date, enddate = e_date, token = tk,limit = 1000)

It worked fine at the beginning, but starting to return the following error message yesterday: Error: (500) - An error occured while servicing your request.

I have tried different tokens, as well as different computers, same error. Is it a systematic error? Thanks!

Session Info ```r ```
sckott commented 4 years ago

thanks; you did not include your session info, please include that

sckott commented 4 years ago

also, in the future share a REPRODUCIBLE example

fengyujie16 commented 4 years ago

My apologies - hope this will complete my question: Reproducible example: ncdc(datasetid='GHCND',stationid = 'GHCND:US1NYSF0002', startdate = '2008-04-01', enddate = '2008-06-31', token = 'token', limit = 1000)'

Session Info ```> sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] geosphere_1.5-10 dplyr_0.8.4 zipcode_1.0 rnoaa_0.9.5 devtools_2.2.1 usethis_1.5.1 loaded via a namespace (and not attached): [1] tidyselect_0.2.5 remotes_2.1.0 purrr_0.3.3 lattice_0.20-38 colorspace_1.4-1 vctrs_0.2.0 testthat_2.3.1 [8] XML_3.99-0.3 rlang_0.4.4 pkgbuild_1.0.6 pillar_1.3.1 httpcode_0.2.0 glue_1.3.1 withr_2.1.2 [15] rappdirs_0.3.1 sp_1.3-2 sessioninfo_1.1.1 lifecycle_0.1.0 stringr_1.4.0 munsell_0.5.0 gtable_0.3.0 [22] memoise_1.1.0 callr_3.4.2 ps_1.3.0 curl_4.3 fansi_0.4.0 hoardr_0.5.2 triebeard_0.3.0 [29] urltools_1.7.3 Rcpp_1.0.1 backports_1.1.5 scales_1.1.0 desc_1.2.0 pkgload_1.0.2 jsonlite_1.6.1 [36] fs_1.3.1 gridExtra_2.3 ggplot2_3.2.1 digest_0.6.23 stringi_1.4.5 processx_3.4.2 rprojroot_1.3-2 [43] grid_3.5.3 cli_1.1.0 tools_3.5.3 magrittr_1.5 lazyeval_0.2.2 tibble_2.1.1 crul_0.9.0 [50] crayon_1.3.4 tidyr_1.0.2 pkgconfig_2.0.2 zeallot_0.1.0 ellipsis_0.3.0 xml2_1.2.2 prettyunits_1.0.2 [57] lubridate_1.7.4 assertthat_0.2.1 rstudioapi_0.11 R6_2.4.0 compiler_3.5.3 ```
sckott commented 4 years ago

There are only 30 days in June.