Skip to content

Error in curl::handle_setopt(handle, .list = req$options) : length(keys) == length(values) is not TRUE #760

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

Open
maheshrapaka opened this issue Mar 13, 2025 · 2 comments

Comments

@maheshrapaka
Copy link

maheshrapaka commented Mar 13, 2025

Recently, I upgraded my R version from 3.6.0 to 4.0.0. Since then, I've been encountering the following error during simple GET or POST calls, which I never experienced with the older version. I also upgraded my httr package from version 1.4.1 to 1.4.7:

Error in curl::handle_setopt(handle, .list = req$options) : length(keys) == length(values) is not TRUE

 res <- GET("http://google.com")

curl_options() is NULL.
I am not sure this is causing the issue.

@Chipdelmal
Copy link

Chipdelmal commented Apr 17, 2025

I had the same issue and it was solved by installing an older version of curl: install.packages('curl', version=4.3). Seems that my system is running a pretty old version of the curl Linux library.

@audrey-onfroy
Copy link

Error in curl::handle_setopt(handle, .list = req$options) : length(keys) == length(values) is not TRUE

I had the same issue, not while using httr but with pkgdown.

It was solved by updating the curl Linux library using the code provided at abraunegg/onedrive#2997.
Then, I updated the curl R package to the latest version using install.packages('curl').

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