I'm trying to use a plumber API in RStudio Cloud and I'm getting the error
{
"error": "500 - Internal server error",
"message": "Error in open.connection(con, "rb"): Could not resolve host: .........."
}
when trying to get data from a URL.
I'm surprised because the API works correctly when I'm running it in RStudio desktop app.
Do you know the reason why I'm getting this error?
Because the URL you are trying to reach is not available from the RStudio Cloud server. This happens if your URL is resolved from your company name server on the desktop, but the name server is not available on the RStudio Cloud server.
Depending on your level of comfort with server administration, you can modify dhcp client resolution with something like