hrbonz / python-aqi

A library to convert between AQI value and pollutant concentration (µg/m³ or ppm)
BSD 3-Clause "New" or "Revised" License
60 stars 28 forks source link

API 'certificate verify failed' #30

Open turbulencelover opened 2 years ago

turbulencelover commented 2 years ago

I get the following error when I try to request an api (using the OpenAQ API Wrapper):

SSLError: HTTPSConnectionPool(host='api.openaq.org', port=443): Max retries exceeded with url: /v2/measurements?city=Delhi&parameter=pm25 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))