【发布时间】:2018-04-14 00:03:31
【问题描述】:
在尝试将 .Rpres 和 .Rmd 文件发布到 RStudio 中的 RPubs 时,我收到了一些不同的错误消息。除了下面的两个,另一个错误只是一个空白的错误响应。我尝试在连接到 VPN 和断开连接时发布,但在我返回的错误类型中找不到模式。
过去(大约一个月前)我已经能够成功地将 .Rmd 文件发布到 RPubs。当我重新发布存在于 RPubs 上的 .Rmd 时,它已被覆盖,现在为空白。
不确定这是 openssl 问题还是其他问题。我认为错误消息从未明确提到过 SSL,但以防万一我尝试从自制软件重新安装 openssl,sudo 接受 xcodebuild 许可证和 CRAN;一切看起来都很好 (package ‘openssl’ successfully unpacked and MD5 sums checked)。
我还在我的 .RProfile 中添加了 options(rpubs.upload.method = "internal")。
我在 OSX 版本 10.13 上运行 R 版本 3.3.3 和 RStudio 版本 1.1.383。
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>
编辑:将options(RCurlOptions = list(verbose = TRUE, capath = system.file("CurlSSL", "cacert.pem", package = "RCurl"), ssl.verifypeer = TRUE)) 添加到 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
【问题讨论】:
-
我解决了您的问题吗?如果没有如果你设置
verbose = TRUE很高兴查看错误数据。 -
太棒了,它已被添加到原始帖子中。
标签: r rstudio r-markdown