Error in value[[3L]](cond) : SSL certificate problem: unable to get local issuer certificate

Hi, please kindly advice me what to do next.

I create a shiny R with simple idea , request API service from my individual token then retrieve data in form of JSON then analyse and publish. I have no problem since around Monday. I've been notified from my users about the shinyapps.io came to black screen with green text stopped.
the error was:
Error in value[3L] :
SSL certificate problem: unable to get local issuer certificate
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

So I try to run the same script from my computer->no error from my computer but always return error with unable to start application after deploying success.

I use library(httr) and GET command
a <- GET("website location", add_headers("api-key" = apiKey)

I tried a statement:

Blockquote options(rsconnect.check.certificate = FALSE) > Blockquote

but fail.

Please advice me what to do next.

Kind regards,
Tony

1 Like

I have a very similar issue, but haven't found much on this. I thought maybe it was because some of the urls I'm scraping from used http and not https, but I changed my scraping logic to account for the https, and it works fine locally, but deployed on Shinyapps.io, I get the same error:

 Error in value[[3L]](cond) : 
  SSL certificate problem: unable to get local issuer certificate
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
1 Like