Skip to Content
2
Dec 25, 2019 at 04:02 PM

How to access HDI Container of Cloud Foundry trial account in Python?

580 Views

Hi Experts,

Need your guidence with below requrement:

Is it possible to access the HDI container of Cloud Foundry "trial" using Python application (example Flask)?

I can do it very easily using Node.js express

But with Python, i am getting issues.

I am trying to access like below:

hana = env.get_service(label='hanatrial')

conn = dbapi.connect(address=hana.credentials['host'], port=int(hana.credentials['port']), user=hana.credentials['user'], password=hana.credentials['password'], encrypt="true")

Error:

========================================

hdbcli.dbapi.Error: (-10709, 'Connection failed (RTE:[300010] Cannot create SSL context: SSL trust store cannot be found: /home/vcap/.ssl/trust.pem (zeus.hana.prod.eu-central-1.whitney.dbaas.ondemand.com:23803))')

========================================

Followed the documentation below, but looks like it is not for "trial".

https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/0a99ed7085b8447cb303c43253f2c704.html

is there any way to access HDI containers of Cloud Foundry "trial" in Python?

Many thanks in advance,

Best Regards,
Venu