I am trying to publish a shiny app but keep getting the following error:
(note that I've replaced my user/token/secret).
I've been following instructions from Shinyapps.io and here, and I have set up an account at both shinyapps.io and lately even tried RStudio Connect. I always end up at the same SSL certicate error. I'm on a corporate machine behind their firewall. Is there a way I can get my shiny published?
> setAccountInfo("user","token", "secret")
Error in function (type, msg, asError = TRUE) :
SSL certificate problem: unable to get local issuer certificate
Timing stopped at: 0.03 0 0.7
Related
I have been running api.bls in R successfully. However, BLS (Bureau of Labor Statistics) increased its security level and now I am getting this error message:
Error in function (type, msg, asError = TRUE) :
Unknown SSL protocol error in connection to api.bls.gov:443
BLS recommended that I turn-off settings TLS 1.0 and use TLS 1.2.
This doesn't help, I am still getting the same message.
Help is appreciated.
Error in highlighted command
I installed docker toolbox to use splashr package in R and followed steps to install splash. But, I am getting an error saying "C:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: driver failed programming external connectivity on endpoint"
Error which I am getting in R is --
"render_png(url = "https://analytics.usa.gov/", wait = 5)
Error in curl::curl_fetch_memory(url, handle = handle) :
Failed to connect to localhost port 8050: Connection refused"
Can anybody help me out on this please?
I am trying to connect to shinyapps via Rstudio using the setAccountInfo function in the rsconnect package:
rsconnect::setAccountInfo(name='MYACCOUNTNAME',
token='TOKEN',
secret='<SECRET>')
But I am getting the following error:
Error in function (type, msg, asError = TRUE) :
Failed to connect to api.shinyapps.io port 443: Timed out
I am in my office PC and one of the more likely problems would be the firewall of the enterprise, so my questions would be:
Is there a way to workaround this problem and connect anyway?
If not, what would be the instruction I would have to give the IT department to be capable of connecting?
The following options should help you see whats happening:
library(rsconnect)
options(rsconnect.http.trace = TRUE, rsconnect.error.trace = TRUE, rsconnect.http.verbose = TRUE)
rsconnect::setAccountInfo(name='MYACCOUNTNAME',
token='TOKEN',
secret='<SECRET>')
By running this you should see what IP addresses rsconnect is trying to use. Try adding this to a whitelist for your firewall.
If this doesn't work it may be a proxy issue. Issue setting up my shinyapps.io + AUTHORIZE ACCOUNT + time out port 443 This should help set up a proxy in rStudio.
I'm trying to connect to a SFTP server. It is an encrypted server that uses FIPS mode. I am able to connect and perform file transfer through WinSCP, FileZilla, and through bash sftp commands with no problems.
But, I cannot, access this same SFTP from R using RCurl (R version=3.3.2, RCurl version=1.95-4.10, windows 10). This is what my code looks like and the error message that is being produced:
RCurl::ftpUpload(what="path/to/my/local/file.ext",
to = "sftp://my.eftp.server:portNumber/path/to/my/file.ext",
userpwd = "user:password",
.opts=curlOptions(verbose=TRUE))
The error message is:
* Trying ###.###.###.##...
* Connected to my.eftp.server (###.###.###.##) port ## (#0)
* Failure establishing ssh session
* Closing connection 0
Error in function (type, msg, asError = TRUE) :
Failure establishing ssh session
Any help would be wonderful. I've referenced the following with no luck:
sftp with R - sftp not a protocol with RCurl,
Using RCurl with SFTP
and the RCurl documentation (and other links).
I've also tried:
RCurl::ftpUpload(what="path/to/my/local/file.ext",
to = "sftp://user:password#my.eftp.server:portNumber/path/to/my/file.ext",
.opts=curlOptions(verbose=TRUE))
Also, I've checked my curlVersion()$protocols and scp and sftp protocols are listed (with the others).
I'm getting the following error authenticating in R with the Rfacebook package. I'm using a RHEL virtual machine...
Authentication complete. Error in function (type, msg, asError = TRUE)
: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed
Please let me know how I can fix this. I have all the needed certificates installed in firefox..
Thanks,
Sam.