-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Can't seem to figure out whats going on here, but the latest version is behaving unexpectedly
error whenever I perform a request
Error in `create_response()`:
! `method` must be a single string, not `NULL`.
note: replaced my url with <api>
for privacy
Version 1.1.2
> remotes::install_version("httr2", version = "1.1.2")
Trying https://cran.r-project.org
Downloading package from url: https://cran.r-project.org/src/contrib/Archive/httr2/httr2_1.1.2.tar.gz
Installing package into ‘/home/jermiahj/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
* installing *source* package ‘httr2’ ...
** package ‘httr2’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (httr2)
> httr2::request(httr2::example_url()) |> httr2::req_url_path("/json") |> httr2::req_perform()
<httr2_response>
GET http://127.0.0.1:44011/json
Status: 200 OK
Content-Type: application/json
Body: In memory (407 bytes)
> httr2::request('http://<api>/models') |> httr2::req_perform()
<httr2_response>
GET http://<api>/models
Status: 200 OK
Content-Type: application/json
Body: In memory (7748 bytes)
updating to 1.2.0
> remotes::install_version("httr2", version = "1.2.0")
Downloading package from url: https://cran.r-project.org/src/contrib/httr2_1.2.0.tar.gz
Installing package into ‘/home/jermiahj/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
* installing *source* package ‘httr2’ ...
** package ‘httr2’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (httr2)
>
> packageVersion('httr2')
[1] ‘1.2.0’
> httr2::request(httr2::example_url()) |> httr2::req_url_path("/json") |> httr2::req_perform()
Error in `create_response()`:
! `method` must be a single string, not `NULL`.
Show Traceback
> httr2::request('http://<api>/models') |> httr2::req_perform()
Error in `create_response()`:
! `method` must be a single string, not `NULL`.
Show Traceback
>
traceback
Error in `create_response()`:
! `method` must be a single string, not `NULL`.
Hide Traceback
▆
1. └─httr2::req_perform(...)
2. └─httr2:::req_perform1(req, path = path, handle = handle)
3. └─httr2:::create_response(req = req, curl_data = fetch$curl_data, body = fetch$body)
4. └─httr2::new_response(...)
5. └─httr2:::check_string(method, call = error_call)
6. └─httr2:::stop_input_type(...)
7. └─rlang::abort(message, ..., call = call, arg = arg)
Metadata
Metadata
Assignees
Labels
No labels