Telegraf no loading string data using influxdb 2

Hi! I am very, very new on Influx matters, I am able to successfully load data from signal key onto influxDB 2. But when trying to load string values, no error is show, but no values are loaded.
Test output is:
pi@openplotter:~/.openplotter/telegraf $ telegraf --config /home/pi/.openplotter/telegraf/self.environment.time.conf --once
2023-07-24T16:52:22Z I! Loading config: /home/pi/.openplotter/telegraf/self.environment.time.conf
2023-07-24T16:52:22Z I! Starting Telegraf 1.27.2
2023-07-24T16:52:22Z I! Available plugins: 237 inputs, 9 aggregators, 28 processors, 23 parsers, 59 outputs, 4 secret-stores
2023-07-24T16:52:22Z I! Loaded inputs: http
2023-07-24T16:52:22Z I! Loaded aggregators:
2023-07-24T16:52:22Z I! Loaded processors:
2023-07-24T16:52:22Z I! Loaded secretstores:
2023-07-24T16:52:22Z I! Loaded outputs: influxdb_v2
2023-07-24T16:52:22Z I! Tags enabled: host=openplotter
2023-07-24T16:52:22Z D! [agent] Initializing plugins
2023-07-24T16:52:22Z D! [agent] Connecting outputs
2023-07-24T16:52:22Z D! [agent] Attempting connection to [outputs.influxdb_v2]
2023-07-24T16:52:22Z D! [agent] Successfully connected to outputs.influxdb_v2
2023-07-24T16:52:22Z D! [agent] Starting service inputs
2023-07-24T16:52:22Z D! [agent] Stopping service inputs
2023-07-24T16:52:22Z D! [agent] Input channel closed
2023-07-24T16:52:22Z I! [agent] Hang on, flushing any cached metrics before shutdown
2023-07-24T16:52:22Z D! [outputs.influxdb_v2] Wrote batch of 1 metrics in 53.092468ms
2023-07-24T16:52:22Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
2023-07-24T16:52:22Z I! [agent] Stopping running outputs
2023-07-24T16:52:22Z D! [agent] Stopped Successfully

config file is:
interval = “5s”
name_override = “self.environment.time”
urls = [“http://localhost:3000/signalk/v1/api/vessels/self/environment/time”]
method = “GET”
success_status_codes = [200]
json_time_key = “timestamp”
json_time_format = “RFC3339”
tag_keys = [“$source”]
data_format = “json”

flush_interval = “5s”
urls = [“http://localhost:8086”]
token = “rv5lyMpqn90wW71ldPmipYsrEB5oS834KjjD8hdP378KcZBA4V9JvR6TbRPBheP9-IWcl79BD1_3M1hva8eaEA==”
organization = “Idunn”
bucket = “idunn”

Accessing endpoint for the GET:
“meta”: {
“description”: “A time reference for the vessel. All clocks on the vessel dispaying local time should use the timezone offset here. If a timezoneRegion is supplied the timezone must also be supplied. If timezoneRegion is supplied that should be displayed by UIs in preference to simply timezone. ie 12:05 (Europe/London) should be displayed in preference to 12:05 (UTC+01:00)”
“value”: “12:35”,
“$source”: “signalk-datetime”,
“timestamp”: “2023-07-24T15:35:49.561Z”

Why same config works like a charm for numeric values? any hep is more than welcome, thx!

Hello @MaxChertudi,
Hmm strange.
Have you taken advantage of the following config option:
debug = true
in the agent portion?

Additionally you can use the --test flag to gather metrics once and print them to stdout.
I like to use that to see what my line protocol output looks like to make sure its as expected.

thanks a lot for your answer! I will give it a try ASAP and I will feed you back.
Have a nice day!

Hi! It took me a while until I was able to grab de raspberry from the boat and perform the tests.
I followed your advice but I am facing auth issues. I generate a new all access token, but result was the same. Log look like:
2023-09-09T23:11:38Z I! Starting Telegraf 1.27.4
2023-09-09T23:11:38Z I! Available plugins: 237 inputs, 9 aggregators, 28 processors, 23 parsers, 59 outputs, 4 secret-stores
2023-09-09T23:11:38Z I! Loaded inputs: http http_response
2023-09-09T23:11:38Z I! Loaded aggregators:
2023-09-09T23:11:38Z I! Loaded processors:
2023-09-09T23:11:38Z I! Loaded secretstores:
2023-09-09T23:11:38Z I! Loaded outputs: influxdb_v2 (2x)
2023-09-09T23:11:38Z I! Tags enabled: host=openplotter
2023-09-09T23:11:38Z I! [agent] Config: Interval:5s, Quiet:false, Hostname:“openplotter”, Flush Interval:10s
2023-09-09T23:11:48Z E! [outputs.influxdb_v2] When writing to [http://localhost:8086]: failed to write metric to (401 Unauthorized): unauthorized: unauthorized access
2023-09-09T23:11:48Z E! [agent] Error writing to outputs.influxdb_v2: failed to send metrics to any configured server(s)

Any idea what could be the problem? thx