Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error from nhd_plus_get #92

Closed
deankoch opened this issue Jul 20, 2023 · 2 comments
Closed

404 error from nhd_plus_get #92

deankoch opened this issue Jul 20, 2023 · 2 comments

Comments

@deankoch
Copy link

deankoch commented Jul 20, 2023

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
Copy link
Owner

jsta commented Aug 11, 2023

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

@jsta jsta closed this as completed in 27aa9ec Aug 11, 2023
@jsta
Copy link
Owner

jsta commented Aug 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants