Error in curl::curl_fetch_memory(url, handle = handle)
vkv
Dataiku DSS Core Designer, Registered Posts: 12 ✭✭✭✭
Hi,
I am writing a simple R code in Notebook as follows and getting an error, can you please guide what could be happening?
library(dataiku)
# Example: load a DSS dataset as a R dataframe
mydataset <- dkuReadDataset("fortune500", samplingMethod="head", nbRows=100000)
Error in curl::curl_fetch_memory(url, handle = handle): Unable to communicate securely with peer: requested domain name does not match the server's certificate. Traceback: 1. dkuReadDataset("fortune500", samplingMethod = "head", nbRows = 1e+05) 2. POST(getSchemaUrl, body = list(fullDatasetName = name), encode = "form", . dku__get_auth_headers(), dku_intercom__get_httr_config()) 3. request_perform(req, hu$handle$handle) 4. request_fetch(req$output, req$url, handle) 5. request_fetch.write_memory(req$output, req$url, handle) 6. curl::curl_fetch_memory(url, handle = handle)
Operating system used: Centos
Tagged:
Best Answer
-
Resolved using the following
dkuSetRemoteDSS("http(s)://DSS_HOST:DSS_PORT/", "Your API Key secret", TRUE)
https://doc.dataiku.com/dss/latest/R-api/outside-usage.html#advanced-options