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

Error: Not Found (HTTP 404) using scrapnames function #933

Open
nickbond opened this issue May 24, 2024 · 7 comments
Open

Error: Not Found (HTTP 404) using scrapnames function #933

nickbond opened this issue May 24, 2024 · 7 comments

Comments

@nickbond
Copy link

nickbond commented May 24, 2024

Running examples for the scrapenames function returns an error. Have tried on multiple systems and networks.

Example below.
library(taxize)
scrapenames('https://en.wikipedia.org/wiki/Spider')

returns
Error: Not Found (HTTP 404)

R sessionInfo below.

> sessionInfo() 
R version 4.4.0 (2024-04-24)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.4.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0
@nickbond
Copy link
Author

nickbond commented Oct 15, 2024 via email

@franky-rogers
Copy link

franky-rogers commented Oct 15, 2024 via email

@zachary-foster
Copy link
Collaborator

Sorry I did not respond to this earlier. If this is a user-specific problem, then I will close, but reopen if there is still and issue.

@nickbond
Copy link
Author

Hi Zachary, thanks for responding.
We've found this issue on multiple machines but whether it's a local issue I can't say. Are you able to run the scrapenames example above without error? Thanks, Nick

@zachary-foster
Copy link
Collaborator

I ran it and got the same error. The global names resolver API changed and this function used that service. I am working on fixing other functions that use GNR so I will add this one to the list.

@nickbond
Copy link
Author

nickbond commented Oct 17, 2024 via email

@zachary-foster
Copy link
Collaborator

Hello @nickbond, I have rewritten the function for the new API. A lot of the options have changed, so you will need to adapt whatever code is using the function. Its seems the API is quite unreliable. Some of the URLs that worked on the old version no longer work on this version. I think this is an issue on their side because I get the same results submitting the queries manually outside of the package.

Try installing the dev version and let me know if you run into issues:

remotes::install_github('ropensci/taxize')

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

3 participants