rsconnect failed at Step 2 – Authorize Account

Hi,
Running the command, with appropriate info filled in from my account:

library(rsconnect)
rsconnect::setAccountInfo(name, token, secret)

results with the following error:

Error in curl::handle_setopt(handle, ssl_verifypeer = TRUE) :
Unknown option: ssl_verifypeer

How can I solve the problem?
Thanks in advance.

info:

sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Linux Mint 22.1

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3 
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3;  LAPACK version 3.11.0

locale:
 [1] LC_CTYPE=tr_TR.UTF-8       LC_NUMERIC=C               LC_TIME=tr_TR.UTF-8        LC_COLLATE=tr_TR.UTF-8     LC_MONETARY=tr_TR.UTF-8   
 [6] LC_MESSAGES=tr_TR.UTF-8    LC_PAPER=tr_TR.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=tr_TR.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Istanbul
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rsconnect_1.3.4

loaded via a namespace (and not attached):
 [1] compiler_4.4.2    cli_3.6.4         tools_4.4.2       rstudioapi_0.17.1 curl_6.2.0        digest_0.6.37     lifecycle_1.0.4   openssl_2.3.2    
 [9] rlang_1.1.5       askpass_1.2.1

What versions of the rsconnect and curl packages do you have? Current versions are 1.3.4 for rsconnect and 6.2.0 for curl. Some time back the names for curl options changed, so if you have a mismatch between rsconnect (newer) and curl (older) that might be the source of the error.

rsconnect          1.3.4
curl                      6.2.0
RCurl                  1.98-1.16

They appear to be in current versions as you mentioned. Are RCurl and curl required together? Another package dependency?

I'm not sure about the relationship between RCurl and curl, but I do not have RCurl installed (I do have curl) and rsconnect seems to work fine on my system.

If you run curl::curl_options(), does ssl_verifypeer show up in the list?

I'm not lucky as You.

library(rsconnect)
library(curl)
Using libcurl 8.5.0 with OpenSSL/3.0.13
rsconnect::setAccountInfo(name='', token='', secret='************************')
Error in curl::handle_setopt(handle, ssl_verifypeer = TRUE) :
Unknown option: ssl_verifypeer

Yes, but encoding problem exists.

ssl_sessıonıd_cache             ssl_verıfyhost             ssl_verıfypeer           ssl_verıfystatus 

When I start rstudio with "LANG=C rstudio" it works as expected.

I noticed that your locales were set to Turkish. If you don't want to start RStudio that way, you could check whether changing one or more locale settings to "C" (or English) in your R session fix the issue. See "help locales" for the details.

Frankly, I'm surprised that language settings would cause that one option (only) not to be recognized. It might deserve a bug report.

"LANG=C rstudio" command solves the problem. This is a fairly old problem and one that I haven't seen recently.
Thanks.

Zeki Çatav
zekicatav.com

16 Şub 2025 Paz 23:13 tarihinde Paul A. Rubin via Posit Community <noreply@forum.posit.co> şunu yazdı: