ShinyApp: Reset By Peer Connection

The newly built shinyapp worked perfectly on my old laptop. I recently got a new laptop with Windows10. After setting everything up, I tried to start the application, but it opens and immediately closes with an error:

Listening http://127.0.0.1 ל004 ERROR: connection [on_request_read] reset by peer

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

I deployed this app to shinyapps.io, it works great there.

I tried some simple applications in Rstudio, but the same problem. It seems that the problem is related to some settings in Windows10. Can someone help me.

Thanks in Advance .....

+5
source share
1 answer

Without detailed information about a specific code, I would share my personal experience with the same error for your reference. In my case, I used RStudio to create a brilliant application that saves data in a local directory on my computer, and I told R to output files to the "directory" response, I did not create such a directory under the working directory, an error. Just by creating a subdirectory called "response", solve it right away. Or to move project files to different places in the future, you can simply check if the folder exists, if not, create one, this should save you a lot of time.

+1
source

Source: https://habr.com/ru/post/1260279/


All Articles