influxdata / influxdata/influxdb

The Read/Write API token failed to find_organizations

Open
#23,171 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
1. create a Read/Write API token under org 'my-org' in influxdb 2.1.1
2. use the token to query the find_organizations
```
org = client.organizations_api().find_organizations(org='my-org')
print(org)
```

__Expected behavior:__
It should not print the empty list, because the Read/Write API token should have access to get the org info

__Actual behavior:__
the `print(org)` print `[]`

__Specifications:__
- Client Version: 1.26.0
- InfluxDB Version: 2.1.1
- Platform: macos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the Python client's organizations_api().find_organizations(org='my-org') using InfluxDB 2.1.1 and a Read/Write token, then inspect that API entry point and its request handling. Done means the call returns the organization instead of an empty list, with a regression test covering the token permissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.