/var/log/syslog.log flooded by influx error message

After influxd starts up and runs it flooded /var/log/syslog on my raspi every 10 second with this:

Jun 30 10:10:45 raspi2 influxd-systemd-start.sh[494]: ts=2023-06-30T08:10:45.580858Z lvl=error msg=“Unable to gather” log_id=0ijpqhDW000 service=scraper scraper-name=“new target” error=“reading text format failed: text format parsing error in line 1: invalid metric name”

influxd-systemd-start.sh:

#!/bin/bash -e

/usr/bin/influxd &
PID=$!
echo $PID > /var/lib/influxdb/influxd.pid

PROTOCOL=“http”
BIND_ADDRESS=$(influxd print-config --key-name http-bind-address)
TLS_CERT=$(influxd print-config --key-name tls-cert | tr -d ‘"’)
TLS_KEY=$(influxd print-config --key-name tls-key | tr -d ‘"’)
if [ -n “${TLS_CERT}” ] && [ -n “${TLS_KEY}” ]; then
echo “TLS cert and key found – using https”
PROTOCOL=“https”
fi
HOST=${BIND_ADDRESS%:}
HOST=${HOST:-“localhost”}
PORT=${BIND_ADDRESS##
:}

set +e
attempts=0
url=“$PROTOCOL://$HOST:$PORT/ready”
result=$(curl -k -s -o /dev/null $url -w %{http_code})
while [ “${result:0:2}” != “20” ] && [ “${result:0:2}” != “40” ]; do
attempts=$(($attempts+1))
echo “InfluxDB API at $url unavailable after $attempts attempts…”
sleep 1
result=$(curl -k -s -o /dev/null $url -w %{http_code})
done
echo “InfluxDB started”
set -e

Which line in which file causes the error message?

Thank you