openfga / openfga/python-sdk

The SDK seems to not to be retrying when the token endpoint returns an error

Open
#139 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
85
Forks
36
Avg merge
3h 8m
Merged PRs (30d)
3

Description

Checklist
  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the Slack community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.
Description

When the token endpoint returns error, the errors are returned to the client application instead of retrying.

Expectation

The SDK should retry, based on how it's configured for retrying.

Reproduction
OpenFGA SDK version

Latest

OpenFGA version

Latest

SDK Configuration
Logs

No response

References

No response

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

No file, test, or entry point is named in the issue. Trace the SDK's token endpoint error handling and configured retry path, then add a regression test for an endpoint error. Done means token-endpoint errors follow the configured retry behavior instead of being returned immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.