openfga / sdk-generator

OpenFGA Client SDK Generator
Apache License 2.0
14 stars 30 forks source link

fix(go-sdk): only retry on client credential requests that are 429 or 5xx #368

Closed ewanharris closed 1 month ago

ewanharris commented 1 month ago

Description

We currently retry every request that fails on a credential request, we should only retry on 429 or 5xx errors (this is what Java and Python do).

References

Generates https://github.com/openfga/go-sdk/pull/102

Review Checklist