InfluxDB Python Client library SSL certificate verification failed

Hi,

I’m new to InfluxDB and i want to push data (json response from Thingworx Get API) that i process in Python into InfluxDB.

I’m following this doc as refernce: Use the InfluxDB Python client library | InfluxDB Cloud (TSM) Documentation (influxdata.com)

I have following error at execution of script :

ApiException: (0) Reason: SSLError [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)

Anyone has idea how to solve this ?

Many thanks

Hello @Lory_96,
Hmm that’s odd I haven’t encountered that issue before.
I’d try the following:

# Example of creating a client that ignores SSL verification
client = InfluxDBClient(
    host='your_influxdb_host',
    port=8086,
    username='your_username',
    password='your_password',
    database='your_database',
    ssl=True,
    verify_ssl=False
)

Does that help? Otherwise I might suggest creating an issue there.