Error using InfluxDB Client API

Hi , I’m collecting data through API get requests and i want to push it to influxDB using InfluxDB python module : influxdb_client.client.write_api.

The problem is since this morning i’m having this error :

NameResolutionError: : Failed to resolve 'theaxolotlapi.netlify.app' ([Errno -2] Name or service not known)

Any idea about this ? Thanks

Hey @Lory_96

Looks like a DNS resolution issue… did you try to put the IP of the server instead of the theaxolotlapi.netlify.app?
Also, make sure you are at least able to ping or curl theaxolotlapi.netlify.app!

Regards

hi, thanks for reply.

how do i know the ip of theaxolotlapi.netlify.app ? i’m not familiar witth this. For the context i’m using python and influxDB & Grafana in a docker container…

I’m not familiar with it neither, just seeing a DNS resolution error so proposing some ideas!

If you just wanna check the IP of a domain name you can use the dig command (on Linux).

dig theaxolotlapi.netlify.app

or just by pinging the address should give you the IP that got pinged.

I recommend you to take a look at the link, because I don’t really understand the logic with an API, but I don’t know what you are working on!
Did your project worked until this morning?
Where’s the error showing?
Can you explain a little more your infra? Is it a python script?