Comments (14)
I'm getting this error from a call to POST()
Error: 'new_handle' is not an exported object from 'namespace:curl'
I guess from httr::handle()
.
from arxiv.
Did you update curl?
from arxiv.
Okay now I've got the dev version of curl, and I'm getting the error you're getting. Will investigate.
from arxiv.
Okay, I've figured out some problems, but it seems like there are a bunch more. 😦
Initial bit is that I was doing
httr::POST(query_url, body=list(search_query=query, id_list=possibly_null))
with the assumption that if possible_null
were NULL
then it would get dropped, which it no longer is.
from arxiv.
Hmm, actually that was the only problem. I'd just left some debug code in there. 😸
from arxiv.
Fixed in PR #26.
from arxiv.
That sounds like a bug in httr to me...
from arxiv.
ive noticed the same, that POST
/etc. don't like it when body
is NULL
or an empty list
from arxiv.
@sckott this is new? (like as of ~3 hours ago)
from arxiv.
no, been happening a long time
from arxiv.
An example, for completeness.
This is okay:
httr::POST("http://export.arxiv.org/api/query",
body=list(search_query='au:"Karl W. Broman"'))
This used to work but doesn't with the devel version of httr:
httr::POST("http://export.arxiv.org/api/query",
body=list(search_query='au:"Karl W. Broman"', id_list=NULL))
from arxiv.
what I was talking about was if length(body) == 0
then POST
would fail
from arxiv.
Hmm. Using NULL
as the body actually works for me: gives status 200 and an appropriate response with 0 results.
z <- httr::POST("http://export.arxiv.org/api/query", body=NULL)
aRxiv::result2list(z)
When using list()
as the body, however, httr::POST
throws an error in line 47 of body.R
stopifnot(length(names(body)) > 0)
from arxiv.
Fixed in r-lib/httr@6d06ad5
The behaviour is now consistent with query params, and there's a better message if all the body parameters aren't named.
from arxiv.
Related Issues (20)
- print method for result of arxiv_count
- Searches with submittedDate ranges give varying results HOT 3
- Should aRxiv be using the OPI-PMH interface rather than the simpler API?
- Do we really need to wait 3 sec between API requests? HOT 3
- Add Windows CI HOT 2
- Continued pain regarding the tests HOT 6
- NEWS and releases HOT 3
- put NEWS bits in releases HOT 2
- Sporadic test fail HOT 1
- Converting a aRxiv object into a RIS or EndNote file HOT 3
- Serialize into a data.frame? HOT 3
- Fix use of class()
- something of wrong? HOT 5
- Corrupt record handling HOT 2
- `nrow(arxiv_search())` is unpredictable HOT 2
- The list of categories in the package is out of date HOT 2
- Change the name to arxiv (lower-case)?
- Need to fix vignette for change in arxiv_cats
- arxiv_count: the "search_info" attribute clutters the output HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arxiv.