-
Notifications
You must be signed in to change notification settings - Fork 3.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
Can't pass token in credentials config file (newline issue) #16547
Comments
@lafrech you should be able to use but we should also not throw that error. we will look into fixing that. |
shouldn't be logging that token either I imagine 🤔 |
@lafrech I'm looking into this. I'm unable to reproduce on my local (darwin). It looks like you have the newline in the auth header. Try running the Let me know if that doesn't fix things up. Otherwise, go on and close the issue and happy hacking 😃 |
Thank you for your quick answers. With the
However, without it, or if I just open the file with vim and paste the token, I get above error. hexdump confirms there's that spurious This could be qualified as a user issue (I should have known about |
@lafrech that's a great point. I'll throw something together to remedy that, great suggestion 👍 |
merged and sealed @lafrech 👍, thanks again for your patience and pro-activity 😃 |
Steps to reproduce:
Following instructions in https://v2.docs.influxdata.com/v2.0/reference/cli/influx/#usage, I set the token in my config file.
I get an error when trying to use it.
However, it works by passing the token in the command line or in an environment variable.
From the error, it seems a \n is added at the end of the token. I don't see how to remove it. Maybe this is a user issue, but even so, influx should be able to remove it.
(The lines were not edited. This is a test instance in a VM not meant to be exposed so I don't mind the token appearing here.)
Environment info:
The text was updated successfully, but these errors were encountered: