首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能将连接主机名(api.shinyapps.io)与服务器证书名称匹配

未能将连接主机名(api.shinyapps.io)与服务器证书名称匹配
EN

Stack Overflow用户
提问于 2019-08-03 01:48:20
回答 1查看 493关注 0票数 0

在部署一个闪亮的应用程序时,rstudio显示了以下错误:

Curl::curl_fetch_memory中的错误(url,句柄=句柄):schannel: CertGetNameString()未能将连接主机名(api.shinyapps.io)与服务器证书名称匹配:.tryCatch -> tryCatchList -> tryCatchOne ->的时间停止在: 0.02 0.02 0.8,停止执行

这是windows 7(64位)。

详情如下:

代码语言:javascript
复制
----- Deployment log started at  2019-08-03 01:42:06  -----
Deploy command: 
 rsconnect::deployApp(appDir = "D:/shinyTest/_app002",      appFileManifest = "C:/Users/ADMINI~1/AppData/Local/Temp/2013-805c-ca6a-04c2",      account = "r00", server = "shinyapps.io", appName = "_app002",      appTitle = "_app002", launch.browser = function(url) {         message("Deployment completed: ", url)     }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE),      logLevel = "verbose") 

Session information: 
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936 
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936   
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C                                                   
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936    

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

loaded via a namespace (and not attached):
[1] compiler_3.6.1   rsconnect_0.8.15
Cookies: 
[1] "None"
----- Deployment error -----
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: CertGetNameString() failed to match connection hostname (api.shinyapps.io) against server certificate names
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>

----- Error stack trace -----
20: stop(e)
19: value[[3L]](cond)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
17: tryCatchList(expr, classes, parentenv, handlers)
16: tryCatch({
        response <- curl::curl_fetch_memory(url, handle = handle)
    }, error = function(e, ...) {
        if (identical(e$message, "Callback aborted") || identical(e$message, 
            "transfer closed with outstanding read data remaining")) 
            return(NULL)
        else stop(e)
    })
15: system.time(gcFirst = FALSE, tryCatch({
        response <- curl::curl_fetch_memory(url, handle = handle)
    }, error = function(e, ...) {
        if (identical(e$message, "Callback aborted") || identical(e$message, 
            "transfer closed with outstanding read data remaining")) 
            return(NULL)
        else stop(e)
    }))
14: http(service$protocol, service$host, service$port, method, url, 
        headers, timeout = timeout, certificate = certificate)
13: httpInvokeRequest(..., http = httpFunction())
12: httpRequest(service, authInfo, "GET", path, query, headers, timeout)
11: GET(service, authInfo, path, queryWithList)
10: grepl(contentType, response$contentType, fixed = TRUE)
9: isContentType(response, "application/json")
8: handleResponse(GET(service, authInfo, path, queryWithList))
7: listRequest(service, authInfo, path, query, "applications")
6: client$listApplications(accountInfo$accountId, filters = list(name = name))
5: getAppByName(client, accountInfo, target$appName)
4: applicationForTarget(client, accountDetails, target, forceUpdate)
3: force(code)
2: withStatus(paste0("Preparing to deploy ", assetTypeName), {
       application <- applicationForTarget(client, accountDetails, 
           target, forceUpdate)
   })
1: rsconnect::deployApp(appDir = "D:/shinyTest/_app002", 
       appFileManifest = "C:/Users/ADMINI~1/AppData/Local/Temp/2013-805c-ca6a-04c2", 
       account = "r00", server = "shinyapps.io", appName = "_app002", 
       appTitle = "_app002", launch.browser = function(url) {
           message("Deployment completed: ", url)
       }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE), 
       logLevel = "verbose")
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: CertGetNameString() failed to match connection hostname (api.shinyapps.io) against server certificate names
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0.02 0.02 0.8
Execution halted

有谁可以帮我?太棒了!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-11-12 22:02:26

昨天我遇到了这个问题,在尝试部署一个应用程序时也看到了同样的错误。如果你和我一样,你搜索并发现类似的错误被观察到如果您有代理服务器的话。这么说吧,我假设您不是代理服务器的后台。如果你是的话,跟着其他地方说的话。

我还假设您以前通过rsconnect::setAccountInfo()设置了您的帐户。如果没有,请按照rsconnect文档上的说明操作。

如果设置了所有这些,请注意错误的文本指定问题实际上是curl包中的一个错误:

Curl::curl_fetch_memory中的错误(url,句柄=句柄):schannel: CertGetNameString()未能匹配连接主机名(api.shinyapps.io)与服务器证书名称

简单的答案是具体地更新curl包:install.packages('curl')。对我有用..。这有用吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57334918

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档