unpaywall | Chrome extension that gives you a link to a free PDF | Browser Plugin library
kandi X-RAY | unpaywall Summary
kandi X-RAY | unpaywall Summary
Repository for the Unpaywall browser extension for Chrome and Firefox. More documentation is available on the website at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of unpaywall
unpaywall Key Features
unpaywall Examples and Code Snippets
Community Discussions
Trending Discussions on unpaywall
QUESTION
I'm trying out roadoi
to access Unpaywall from R, but no matter what I try to query for, I'm getting this response:
Error in UseMethod("http_error") : no applicable method for 'http_error' applied to an object of class "c('simpleError', 'error', 'condition')"
Running methods(http_error)
gives me this:
ANSWER
Answered 2019-Apr-10 at 07:48The http_error
(actually from library httr
) is a very simple function: it loads an url given by a character (http_error.character
), retrieves the response (http_error.response
) and ultimately looks at the response code (http_error.integer
). If the response code is >=400
the function returns TRUE
otherwise FALSE
.
What your error says, is that you (or any function in your chain) tries to call http_error
on a simpleError
object. My guess is that your firewall settings block the request. Because the request is blocked the underlying httr::RETRY
(which is called from oadoi_fetch
) returns an error instead of a proper response object and http_error
sees just this error object and breaks.
If I locally switch off my proxy (through which I can make requests) I also get an error:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install unpaywall
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page