Shiny Docker Unable to Connect to API/Internet

I've setup a Shiny App using docker shiny image and all works well until I attempt to call API using httr package. From what I can get I'm unable to access internet from the App as I get the Timeout message from multiple sites, and verified the work from going through web browser. Wondering what setting I need to change?

From the RStudio Console within the App:

> library(httr)
> r <- GET("")
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Timeout was reached: [] Connection timed out after 10000 milliseconds

Here is my DockerFile:

FROM rocker/tidyverse

RUN apt-get update
RUN apt-get install -y libpq-dev
RUN R -e 'install.packages("RPostgres")'
RUN R -e 'install.packages("DT")'

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.