Hi i have a genuine question
like 1-2 weeks ago i make literally basic project to how influxdb work and make sure my sensor can gather data and put it in influx
in this snippet of whole telegraf configuration the first time i try to ran the telegraf config with actual API token put in the token, it said this error in shells:
Error getting HTTP config. Retry 0 of 3 in 10s. Status=401
but after i make an environment of it in my computer without changing my telegraf config, it suddenly worked. my log running, my data succesfully sent in my database is there a reasons why my computer is set in that ways?
thx
Was this a brand new token you created moments before starting Telegraf? Depending on the version of InfluxDB your using, there can actually be a delay between when a token is created vs when it’s registered and usable.
There possible could have been an extra whitespace in your token string literal or something similar that wasn’t included when you added it as an environment variable.