InfluxDB on localhost InfluxDBServerError exception after VPN switch(and losing the access to internet)
-
InfluxDB version: e.g. 1.7.7 (output of the
influx versioncommand) 1.7.9-1 -
InfluxDB-python version: e.g. 5.2.2 (output of the
python -c "from __future__ import print_function; import influxdb; print(influxdb.__version__)"command) 5.3.1 -
Python version: e.g. 3.7.4 (output of the
python --versioncommand) 3.9.1 - Operating system version: e.g. Windows 10, Ubuntu 18.04, macOS 10.14.5 Windows 10
I am using InfluxDB on localhost. In addition to python script - other services are present: Grafana, Chronograf, Telegraf - they don't register any problem.
After starting the script that is flushing some data to InfluxDB via: client = InfluxDBClient(host='localhost', port=8086, database='unittest')
everything is working fine.
During my normal work i have to switch between 3 different VPNs - some of them are secure and don't have internet access.
After switching to one of those VPNs my script keeps getting an exception InfluxDBServerError, and cannot connect to localhost InfluxDB until i finish working in that VPN, then it goes back to normal.
I assume there's some kind of JSON decorator with external link added to my:
client.write_points(json_body)
which is innaccessible and causes this exception to be risen.