Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
来自googleAuthR包的反应式表达式中出现curl错误:收到意外的TLS数据包_R_Shiny_Google Compute Engine_Reactive Programming_Google Authentication - Fatal编程技术网

来自googleAuthR包的反应式表达式中出现curl错误:收到意外的TLS数据包

来自googleAuthR包的反应式表达式中出现curl错误:收到意外的TLS数据包,r,shiny,google-compute-engine,reactive-programming,google-authentication,R,Shiny,Google Compute Engine,Reactive Programming,Google Authentication,我使用的是googleAuthR,这是一个R库,可以方便地使用GoogleAPI和GoogleOAuth,它来自一个运行在GoogleComputeEngine和Shining服务器上的闪亮应用程序 当我触发OAuth身份验证流时,我偶尔会在重定向到我的应用程序后立即收到一个错误。无论我在那之后做什么,我都无法启动一个新的会话而不出错(直到我重新启动服务器) 日志显示如下: Warning: Error in curl::curl_fetch_memory: gnutls_handshake()

我使用的是googleAuthR,这是一个R库,可以方便地使用GoogleAPI和GoogleOAuth,它来自一个运行在GoogleComputeEngine和Shining服务器上的闪亮应用程序

当我触发OAuth身份验证流时,我偶尔会在重定向到我的应用程序后立即收到一个错误。无论我在那之后做什么,我都无法启动一个新的会话而不出错(直到我重新启动服务器)

日志显示如下:

Warning: Error in curl::curl_fetch_memory: gnutls_handshake() failed: An unexpected TLS packet was received.
  131: curl::curl_fetch_memory
  130: request_fetch.write_memory
  128: request_perform
  127: POST
  126: gar_shiny_getToken
  125: <reactive>
  109: accessToken
   96: shiny::renderUI
   95: func
   82: origRenderFunc
   81: output$gauth_login-googleAuthUi
    1: runApp

任何帮助都将不胜感激

你能找到这个问题的解决方案吗?嗨,这个问题最终被解决了,但是很多事情都是由不同的人尝试过的,所以不清楚是什么不幸地解决了它。您是否尝试过:sudo apt get install-y libcurl4 openssl dev?让我知道这是否有效!谢谢你回来。不幸的是,它没有起作用,我遇到的所有可能的解决办法也没有起作用。我在等一位谷歌工程师,希望他能帮忙。

server <- function(input, output, session) {

accessToken <- callModule(googleAuth, "gauth_login")

userDetails <- reactive({
   req(accessToken())
   with_shiny(get_user_info, shiny_access_token = accessToken())
 })

...

}
googleAuthUI("gauth_login")