influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

InfluxDB on localhost InfluxDBServerError exception after VPN switch(and losing the access to internet)

Open Vigerus opened this issue 4 years ago • 0 comments

  • InfluxDB version: e.g. 1.7.7 (output of the influx version command) 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 --version command) 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.

Vigerus avatar Apr 01 '21 12:04 Vigerus