openfga / openfga/python-sdk

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

Offen
#139 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug
Vorherrschende Sprache
Python
Sterne
85
Forks
36
Ø Merge
3 Std. 8 Min.
Gemergte PRs (30 T.)
3

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

In diesem Issue wird keine Datei, kein Test und kein Einstiegspunkt genannt. Verfolge die Fehlerbehandlung des Token-Endpunkts im SDK und den konfigurierten Retry-Pfad. Füge anschließend einen Regressionstest für einen Endpunktfehler hinzu. Erledigt ist die Aufgabe, wenn Fehler des Token-Endpunkts dem konfigurierten Retry-Verhalten folgen, anstatt sofort zurückgegeben zu werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
authentication
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
32/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.