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 in searchByString(string = myQuery, outfile = "testdata.xml") : Unauthorized (HTTP 401). #3

Open
omar-almolla209 opened this issue Mar 23, 2023 · 1 comment

Comments

@omar-almolla209
Copy link

Running:

theXML <- searchByString(string = myQuery, outfile = "testdata.xml")

I got this error:
Error in searchByString(string = myQuery, outfile = "testdata.xml") : Unauthorized (HTTP 401).

@christopherBelter
Copy link
Owner

What's probably going on is that you either don't have an institutional subscription to Scopus or that you're not making the request from an IP address that has a recognized subscription. That Unauthorized 401 error is probably due to the fact that Scopus doesn't recognize your computer's IP address as having a subscription to the full database. So either make the request from an institutional IP address (by signing in to VPN if you're offsite) or change the "content" argument in the searchByString() function to "standard". The latter option won't give you as much data as the default "complete" value, but it should at least give you something.

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