htappen / r-google-cloud-ai

A set of tutorials for how to use R with Google Cloud AI Platform
MIT License
1 stars 1 forks source link

Connection Refused for runApp() #3

Closed herambgadgil closed 3 years ago

herambgadgil commented 3 years ago

Hi Henry,

I am encountering yet another problem. When I try to run a shiny app locally, I get a connection refused error. I tried to open a particular port and then set it with options(shiny.port = xxxx) and also tried setting the host to 0.0.0.0.

But the problem still persists. The app is a simple 'Hello World!'

image

Let me know if this is related to this repo or if I need to raise a support case. Tagging @rajcheval for any additional helpful inputs.

Thanks! Heramb

htappen commented 3 years ago

This is related to the RStudio and the way it has its own proxy inside. Here's roughly the problem: https://github.com/rstudio/rstudio/blob/master/src/cpp/server_core/UrlPorts.cpp

I have an idea of how to fix this, but I'm not sure it will be easy.

htappen commented 3 years ago

Check out the latest update. I think it fixes it.

herambgadgil commented 3 years ago

I will check and revert!

herambgadgil commented 3 years ago

Hi Henry,

The enhancement works! Thanks a lot.. Cannot emphasize more on how much useful this is! :-)

Thanks! Heramb