I am developing a Shiny app that grabs data from a REDCap API which is a web application for building surveys. There is limited capability with REDCap so I want to grab data from the survey and use a Shiny app to finish the survey. I have tried mutliple REDCap API packages [redcapAPI, REDCapR, RCurl] and each one gives the same results. The problems:
- While running the app on my local computer, I can only get the data from the API if I do not include the "s" in my URL [http vs https]. So my first question is, why does it only work without the "s"? All examples I have seen show the URL as https. So it works on my local computer if the URL starts only with http.
- Then I deploy the app to shinyapps.io and it does not work. There are no errors in RStudio when it deploys but when it loads in the browser it turns grey right away and is 'Disconnected from the server.'. I looked the Log for the app and the following warnings and errors occur:
- Warning: Error in curl::curl_fetch_memory: Could not resolve host:
- Error in curl::curl_fetch_memory(url, handle = handle) : Could not resolve host:
Has anyone else experienced this issue with another API or possibly with REDCap API? Is it a problem that the URL is http and not https? I've looked through other forums and cannot find a solution.