I am currently using the latest version of RStudio connect, and am running into an issue with deploying to the connect server when I configure my corporations proxy settings in R via my local
.Renviron. The Connect server is running on a virtual machine behind my corporations firewall and has a nginx server running on it as well so that a vanity path can be used to mask the port number in the url.
If I set my proxy information in my
.Renvrion then I get the following:
Response [http://www.google.com/] Date: 2018-05-04 13:32 Status: 200 Content-Type: text/html; charset=ISO-8859-1 Size: 12.7 kB
If I run the same command for my connect server I get this:
Response [http://myserver/myconnect] Date: 2018-05-04 09:31 Status: 503 Content-Type: text/html; charset=utf-8 Size: 760 B
However, when I remove the proxy settings from the
.Renvrion my connect gives a successful response but I get a
curl error for any outside site:
Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Connection timed out after 10016 milliseconds
and again for my connect server:
Response [http://myserver/myconnect] Date: 2018-05-04 13:27 Status: 200 Content-Type: text/html; charset=utf-8 Size: 2.46 kB
So my question is whether or not there is a setting on the connect server (either for the connect or nginx) that will allow me to reach the connect server from my local machine while my proxy settings are in my
The reason this is an issue is because
httr::GET() appears to be what is used during application deployment to the connect server, so deployment fails when the proxy is set up. However, it is also very tedious to have to enter my proxy settings in every R session that I want to connect to the internet for anything (i.e. github downloads, web scraping).