I've gotten a few different error messages when trying to publish both a .Rpres and an .Rmd file to RPubs in RStudio. Besides the two below, another error is just a blank Error response. I've tried publishing both while connected to a VPN and while disconnected and can't find a pattern in the type of error I get back.
I've been able to successfully publish an .Rmd file to RPubs in the past (last about a month ago). When I republished that .Rmd that existed on RPubs it was overwritten and is now blank.
Not sure whether this is an openssl issue or something else. I don't think the error messages ever mentioned SSL explicitly, but just in case I tried re-installing openssl from homebrew, sudo accepting the xcodebuild license and from CRAN; everything looks okay (package ‘openssl’ successfully unpacked and MD5 sums checked
).
I've also added options(rpubs.upload.method = "internal")
to my .RProfile.
I'm running R version 3.3.3 and RStudio Version 1.1.383 on OSX version 10.13.
Error in function (type, msg, asError = TRUE) : Empty reply from server
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the <a href="http://nginx.org/r/error_log">error log</a> for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>
Edit: full response when options(RCurlOptions = list(verbose = TRUE, capath = system.file("CurlSSL", "cacert.pem", package = "RCurl"), ssl.verifypeer = TRUE))
added to Rprofile`
* Trying 50.19.223.253...
* TCP_NODELAY set
* Connected to api.rpubs.com (50.19.223.253) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /Users/amanda/Library/R/3.3/library/rsconnect/cert/cacert.pem
CApath: /Users/amanda/Library/R/3.3/library/RCurl/CurlSSL/cacert.pem
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=rpubs.com
* start date: Oct 30 00:00:00 2017 GMT
* expire date: Nov 30 12:00:00 2018 GMT
* subjectAltName: host "api.rpubs.com" matched cert's "api.rpubs.com"
* issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
* SSL certificate verify ok.
> POST /api/v1/document HTTP/1.1
Host: api.rpubs.com
User-Agent: rsconnect/0.8.5
Accept: */*
Connection: close
Content-Type: application/x-compressed
Content-Length: 10630431
Expect: 100-continue
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* Empty reply from server
* Connection #0 to host api.rpubs.com left intact
Error in function (type, msg, asError = TRUE) : Empty reply from server
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted