From ea5ac3154b78073060dd07810d4052564d065f85 Mon Sep 17 00:00:00 2001 From: bahtya Date: Thu, 9 Apr 2026 02:51:58 +0800 Subject: [PATCH 1/2] fix: use module logger instead of root logger in exceptions.py The logging.debug() call in _get_message() was using the root logger instead of the module-level 'influxdb_client.client.exceptions' logger. This made it impossible to control the log output via the configured logger namespace. Fixes #701 Signed-off-by: bahtya --- influxdb_client/client/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb_client/client/exceptions.py b/influxdb_client/client/exceptions.py index bfa453e2..2910f040 100644 --- a/influxdb_client/client/exceptions.py +++ b/influxdb_client/client/exceptions.py @@ -34,7 +34,7 @@ def _get_message(self, response): try: return json.loads(response.data)["message"] except Exception as e: - logging.debug(f"Cannot parse error response to JSON: {response.data}, {e}") + logger.debug(f"Cannot parse error response to JSON: {response.data}, {e}") return response.data # Header From 4fa8d6ef3d99c4204e28810f8ce53e2e33acc16b Mon Sep 17 00:00:00 2001 From: Bahtya Date: Thu, 9 Apr 2026 20:25:26 +0800 Subject: [PATCH 2/2] fix(ci): replace wget with curl in influxdb-onboarding.sh The cimg/python Docker images for Python 3.9+ are now based on Ubuntu 24.04, which no longer includes wget by default. This caused CI test failures on Python 3.9, 3.10, 3.11, and 3.12. Replace the wget health check with an equivalent curl-based retry loop. --- scripts/influxdb-onboarding.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/influxdb-onboarding.sh b/scripts/influxdb-onboarding.sh index 85da2272..a2777359 100755 --- a/scripts/influxdb-onboarding.sh +++ b/scripts/influxdb-onboarding.sh @@ -24,7 +24,13 @@ set -e echo "Wait to start InfluxDB 2.0" -wget -S --spider --tries=20 --retry-connrefused --waitretry=5 http://localhost:8086/metrics +for i in $(seq 1 20); do + if curl -sf -o /dev/null http://localhost:8086/metrics; then + break + fi + echo "Attempt $i failed, retrying in 5 seconds..." + sleep 5 +done echo echo "Post onBoarding request, to setup initial user (my-user@my-password), org (my-org) and bucketSetup (my-bucket)"