influxdata / influxdata/influxdb
influx restore command - returned error when a wrong token is passed
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
__Proposal:__
A more clear message when wrong token is passed to influx restore command
__Current behavior:__
The returned error is "Error: Cannot find existing organization: &influxdb.Error{Code:"", Msg:"", Op:"FindOrganization", Err:(*influxdb.Error)(0xc0004b7040)}."
__Desired behavior:__
Something more explicit like: "connection refused"
__Use case:__
Avoid spending time to look what could be wrogn with the orgid
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the `influx restore` command and reproduce the behavior using an invalid token, focusing on the organization lookup that returns the reported error. Done means the command reports an explicit token or connection failure instead of the opaque organization error, with the restore behavior covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Domain
- authentication, cli, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100