Error with rsconnect::setAccountInfo()

Good evening,

I have seen similar issues on this forum, but apparently not the exact one I'm facing, and I have not seen a convincing solution either so...

> rsconnect::setAccountInfo(name='jfmoyen',
+                           token='my_token',
+                           secret='my_secret'')

results in the following error:

curl: (51) schannel: CertGetCertificateChain trust error CERT_TRUST_IS_PARTIAL_CHAIN
Error in http(service$protocol, service$host, service$port, method, url,  : 
  Curl request failed (curl error 51 occurred)
In addition: Warning message:
running command 'curl -i -X GET --cacert "C:\Users\moje4671\AppData\Local\Temp\RtmpU39jPg\cacerts87c59967e5.pem"  --header "Date: Thu, 31 Jan 2019 20:48:59 GMT" --header "X-Auth-Token: <my token>" --header "X-Auth-Signature: <something>; version=1" --header "X-Content-Checksum: d41d8cd98f00b204e9800998ecf8427e" --header Expect: --user-agent rsconnect/0.8.13 --silent --show-error -o "C:\Users\moje4671\AppData\Local\Temp\RtmpU39jPg\file87c74311a03" "https://api.shinyapps.io/v1/users/current/"' had status 51

Any help would be appreciated !
Thanks

Browsing through the code of rsconnect::setAccountInfo() (via debug() ), the error occurs on this line :

lucid <- lucidClient(serverInfo$url, authInfo)
userId <- lucid$currentUser()$id

where

Browse[2]>lucid$currentUser

function () 
{
   handleResponse(GET(service, authInfo, "/users/current/"))
}
<bytecode: 0x18643804>
<environment: 0x17fbe610>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.