Disconnected from Server in shinyapps, but local's working

前端 未结 3 1440
萌比男神i
萌比男神i 2020-12-19 09:34

I deployed my Shiny code to shinyapps.io successful. My data has little much rows (over 190,000), these data\'s can display in my local PC but shinyapps cannot with \'Discon

3条回答
  •  一个人的身影
    2020-12-19 10:31

    I had faced a similar issue, adding a few pointers which might help someone.

    Load you application and try analysing the requests from the browser network logs section.

    On doing so i noticed two of my requests from the Shiny app were pretty heavy and taking a long while ~25-30s. After a while connection would get terminated with the error as below:

    {"type":"close","code":3000,"reason":"No response from heartbeat","wasClean":true}

    Shiny has few params related to heartbeat.

    http://docs.rstudio.com/shiny-server/#sockjs_heartbeat_delay

    Setting them is what helped me. Increase the value of 'sockjs_heartbeat_delay' in shiny-server.conf to a large number and the disconnect issue was not seen anymore.

提交回复
热议问题