# An error using resourcer

**URL:** <https://datashield.discourse.group/t/an-error-using-resourcer/375>\
**Category:** Analyst Support\
**Created:** [6 April 2021 14:37 UTC](https://datashield.discourse.group/t/an-error-using-resourcer/375 "2021-04-06T14:37:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [6 April 2021 14:37 UTC](https://datashield.discourse.group/t/an-error-using-resourcer/375/1 "2021-04-06T14:37:04Z")

</div>

Hi,

I successfully loaded rda data using resourcer from opal on the virtual machine. When it came to the real server (using the same setting), the following errors appeared.

```
> datashield.assign.resource(datasources[3],symbol="Y",resource = "omics.Y")
  Assigned all resource (Y <- ...) [=====================================================] 100% / 0s
> ds.class(x = "Y", datasources = datasources[3])
 Aggregated (exists("Y")) [=============================================================] 100% / 0s
  Aggregated (classDS("Y")) [============================================================] 100% / 0s
 $s3
 [1] "RDataFileResourceClient" "FileResourceClient" "ResourceClient" "R6"                     

> datashield.assign.expr(conns = datasources[3], symbol = "Y", expr = quote(as.resource.object(Y)))
 Assigned expr. (Y <- as.resource.object(Y)) [==========================================] 100% / 0s
Error: There are some DataSHIELD errors, list them with datashield.errors()

> datashield.errors()
 $s3
 [1] "Command 'as.resource.object(Y)' failed on 's3': Error while evaluating 'is.null(base::assign('Y', value={resourcer::as.resource.object(Y)}))' -> Error in curl::curl_fetch_disk(url, x$path, handle = handle) : \n Peer's Certificate issuer is not recognized.\n"

```

Does anyone know how to fix it? Regards,

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [6 April 2021 15:20 UTC](https://datashield.discourse.group/t/an-error-using-resourcer/375/2 "2021-04-06T15:20:41Z")

</div>

Hi,

It says that the `ResourceClient` is trying to communicate with a remote host via https and that this server has not a valid certificate (from the R server host point of view). This is rejected for security reasons. See with your IT department to make this certificate recognized by the R server host.

Regards  
Yannick

---

<div class="post-metadata">

**Author:** ![HankCao](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HankCao](https://datashield.discourse.group/u/HankCao)\
**Post date:** [6 April 2021 16:01 UTC](https://datashield.discourse.group/t/an-error-using-resourcer/375/3 "2021-04-06T16:01:10Z")

</div>

Hi Yannick,

I am a bit confused. Because I found run any analysis (datashiled functions, my own functions, load data from import) on the remote server without any problems, why they required the certificates for resources?

Regards, hank

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [6 April 2021 20:41 UTC](https://datashield.discourse.group/t/an-error-using-resourcer/375/4 "2021-04-06T20:41:24Z")

</div>

Maybe you could tell us a bit more about your resource: what is this server for which the connection fails?
