jsta / nhdR

R interface to the National Hydrography Dataset :droplet:
https://jsta.github.io/nhdR/
37 stars 12 forks source link

404 error from nhd_plus_get #92

Closed deankoch closed 1 year ago

deankoch commented 1 year ago

Hi there, I'm encountering a 404 error when calling

nhdR::nhd_plus_get('10U', 'NHDSnapshot', temporary=FALSE)

On my Windows 10 machine, with the latest version of R and nhdR, this produces the following error:

Error in open.connection(x, "rb") : HTTP error 404.

I believe this call worked up until about 3 weeks ago. The internal function call that produces the error seems to be

nhdR:::get_plus_remotepath('10U', component='NHDSnapshot')

If I step through that code and follow the URL to the XML, I see that it reports "NoSuchBucket" and "The specified bucket does not exist". So I suspect that there is a bucket name constant somewhere that needs updating. What do you think?

jsta commented 1 year ago

Thanks for the report. I'm seeing the same error. Investigating now...

jsta commented 1 year ago

The updated bucket appears to have fixed this issue. For now, the fix can be installed with remotes::install_github('jsta/nhdR'). It will also be in the next CRAN release.