ShinyApp:对等连接重置 [英] ShinyApp : Connection Reset By Peer

查看:41
本文介绍了ShinyApp:对等连接重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前构建的 Shinyapp 在我的旧笔记本电脑上运行良好.最近我买了一台装有 Windows10 的新笔记本电脑.设置完所有内容后,我尝试运行该应用程序,但浏览器立即打开并关闭并显示错误:

The shinyapp I built earlier was running fine in my old laptop. Recently I got a new laptop with Windows10. After setting up everything, I tried to run the app but it the browser opens and closes immediately with the error :

收听 http://127.0.0.1:5004错误:[on_request_read] 连接由对等方重置

Listening on http://127.0.0.1:5004 ERROR: [on_request_read] connection reset by peer

我也将 chrome 设置为默认浏览器....

I have also set chrome as default browser....

我在 Shinyapps.io 中部署了这个应用程序,它在那里运行良好.

I deployed this app in shinyapps.io it is working fine there.

我在 Rstudio 中尝试了一些更简单的应用程序,但同样的问题也出现了.看起来这个问题与 Windows10 中的某些设置更相关.有人可以帮我吗.

I tried few more simple apps in Rstudio but the same issue coming. Looks like the issue is more related to some setting in Windows10. Can someone help me please.

提前致谢.....

推荐答案

如果没有具体代码的细节,我会分享我的个人经历,以供您参考.就我而言,我使用 RStudio 创建了一个闪亮的应用程序,将数据保存到我计算机上的本地目录,而我告诉 R 将文件输出到目录响应",我没有在工作目录下创建这样的目录,所以出现了错误.只需创建名为response"的子目录即可立即解决此问题.或者以后要将项目文件移动到不同的地方,您可以检查文件夹是否存在,如果不存在,创建一个可以节省大量时间.

Without details on the specific code, I'd share my personal experience with the same error for your reference. In my case, I used RStudio to create a shiny app that save data to a local directory on my computer, while I told R to output files to directory "response", I hadn't created such directory under the working directory so came the error. Simply creating the sub directory named "response" solve this right away. Or for moving your project files to different places in the future, you can just check whether the folder exists, if not, create one shall save you a lot of time.

这篇关于ShinyApp:对等连接重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆