You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems I cannot create tokens on a cloud2 instance. I might be missing something here…
user@host:~/pa$ influx auth create --write-bucket testdata -d "token description"
Error: could not find user with name "": %!w(<nil>)
user@host:~/pa$ influx user create --name bob
Error: failed to create user "bob": 401 Unauthorized: write:users is unauthorized
Furthermore, the user flag, if actually required, is not handled well:
The --user flag is missing, but the output is a little cryptic and indicates it executed with unset variables.
$ influx auth create --write-bucket testdata
Error: could not find user with name "": %!w(<nil>)
What might be nicer: Error: Required flag “user” not set
Also, usage is usually printed when a required parameter is missing, but not in this instance. This is annoying.
$ influx auth create
Error: could not find user with name "": %!w(<nil>)
reidkaufmann
changed the title
Required --user flag problems: prevents token creation on cloud2 offering
Required --user flag problems: prevents token creation on cloud2 offering using cli
Apr 27, 2023
It seems I cannot create tokens on a cloud2 instance. I might be missing something here…
Furthermore, the user flag, if actually required, is not handled well:
The --user flag is missing, but the output is a little cryptic and indicates it executed with unset variables.
What might be nicer:
Error: Required flag “user” not set
Also, usage is usually printed when a required parameter is missing, but not in this instance. This is annoying.
This was observed using the 2.7.1-2 amd64 package available at https://portal.influxdata.com/downloads/ with build_date: 2023-04-06T15:31:37Z
There are other methods/interfaces for creating authorization tokens, so the impact is limited.
The text was updated successfully, but these errors were encountered: