-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first path segment in URL cannot contain colon #3794
Comments
I feel like this is a quirk of docker-compose, when you set an environment variable in your shell script these outer quotes are not part of the variable: $ export INFLUX_URL="http://localhost:8086"
$ env | grep INFLUX
INFLUX_URL=http://localhost:8086 I see in the docker-compose docs that they warn about this, I'm sure many others have ran into this:
I don't want to strip outer quotes automatically because I think it will cause more bugs and confusion. |
Of course. Anyway: Is there a way to edit the error message? "do not use double quotes ..." is not that significant. Anyway, the problem was really yaml-specific, as |
It looks like this part of the error message, We are free to switch up the prefix though: |
Yes, absolutely! If it is possible, I would even prefer single quotes for the outer quotes. That would give the same output as running environment-file in yaml:
running declare in the container:
(if there is a better tool like declare, that could be the reference though) |
2024/12/19 18:32:00 Error creating request: parse "172.20.212.240:80/api/v1/operators/add": first path segment in URL cannot contain colon |
@rdxmb Could you please help? I am facing this issue with Kubernetes only. code works fine in ubuntu ec2 instance. |
I do not think this has anything to do with this issue. @Shreyamitti |
Bug report
Relevant telegraf.conf:
System info:
telegraf 1.5.2
Steps to reproduce:
Expected behavior:
If not works, the error output should be something like:
"do not use double quotes ..."
Actual behavior:
E! Failed to connect to output influxdb, retrying in 15s, error was 'Error creating HTTP Client ["http://yoururl.com:8086"]: error parsing config.URL: parse "http://yoururl.com:8086": first path segment in URL cannot contain colon'
Aditional info
edit the line to
INFLUXDB_HOST_FULL_ADDRESS=http://yoururl.com:8086
fixes the problem
The text was updated successfully, but these errors were encountered: