Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion influxdb_client/client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion scripts/influxdb-onboarding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down