beda-software / fhir-py

FHIR Client for python
MIT License
174 stars 32 forks source link

AsyncFHIRClient's aiohttp throwing SSLCertVerificationError #85

Closed balint729 closed 2 years ago

balint729 commented 2 years ago

Hi All!

We're having issues with AsyncFHIRClient's aiohttp throwing SSLCertVerificationError tried several ways of setting up the SSL Certificate context but as AsyncClient calls aiohttp like: async with aiohttp.request(method, url, json=data, headers=headers) as r: We don't have any influence on passing the SSL Context to aiohttp.

It does not help to set the usual env. variables used for this either

Could you please advise how this could be solved?

Thank you in advance. BR, Bálint

mkizesov commented 2 years ago

These updates is not in the main branch yet, but you can try using it pip install https://github.com/beda-software/fhir-py/archive/refs/heads/add-request-config.zip

Now it's posible to provide aiohttp_config dict to AsyncFHIRClient like it's done here

mkizesov commented 2 years ago

Link in the docs aiohttp-request-parameters

balint729 commented 2 years ago

Great news, thanks for the quick response! 👍

ir4y commented 2 years ago

The fix is merged