Error in curl::curl_fetch_memory(url, handle = handle)

Solved!
vkv
Level 2
Error in curl::curl_fetch_memory(url, handle = handle)

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

0 Kudos
1 Solution
vkv
Level 2
Author

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

View solution in original post

2 Replies
vkv
Level 2
Author

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

CoreyS
Dataiker Alumni

Thank you for sharing your solution with the rest of the community @vkv!

Looking for more resources to help you use Dataiku effectively and upskill your knowledge? Check out these great resources: Dataiku Academy | Documentation | Knowledge Base

A reply answered your question? Mark as โ€˜Accepted Solutionโ€™ to help others like you!
0 Kudos