OHDSI / ROhdsiWebApi

An R package for interfacing with a WebAPI instance
https://ohdsi.github.io/ROhdsiWebApi
10 stars 17 forks source link

Connecting to a webAPI thougth https #175

Closed javier-gracia-tabuenca-tuni closed 3 years ago

javier-gracia-tabuenca-tuni commented 3 years ago

Our webAPI is serverd has changed from http to https and ROhdsiWebApi stopped working.

I can set a certificate for the httr;; package but functions keep failing at this point

https://github.com/OHDSI/ROhdsiWebApi/blob/23eaf1e0fe3f7f6a4aae6dcfb3ebdb8fd39ed900/R/Private.R#L22

with error "status was SSL peer certificated or SSH remote was not OK".

Is there a solution to this? Should .isValidUrl test the url validity using httr:: functions to fix this issue ??

ChenyuL commented 3 years ago

Hi all, I have a similar question:
It seems I can not get the correct authorization for using the WebApi. So I'm not able to use functions like getCdmSources, getDefinitionsMetadata, etc. Also my CohortDiagnostics package fails. How could I solve this issue? image

gowthamrao commented 3 years ago

Hi @ChenyuL @javier-gracia-tabuenca-tuni Can you please try the develop version of ROhdsiWebApi. We have added security support and would love feedback from you.