You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I've noticed some errors with the Go SDK that doesn't seem to retry failing requests when the server returns 5xx responses. I wrote this small test to reproduce:
Uh oh!
There was an error while loading. Please reload this page.
Checklist
Description
Hi! I've noticed some errors with the Go SDK that doesn't seem to retry failing requests when the server returns 5xx responses. I wrote this small test to reproduce:
Which errors with:
By looking through the code, it seems that the issue is here:
go-sdk/errors.go
Line 600 in 387aa77
The function looks at
e.shouldRetry
, but I don't see the field's value ever being set totrue
.The logic implemented just above in the exported
ShouldRetry()
func seems like what should be invoked instead:go-sdk/errors.go
Line 594 in 387aa77
Expectation
see description
Reproduction
See description
OpenFGA SDK version
0.7.1
OpenFGA version
1.8.6
SDK Configuration
see description
Logs
No response
References
No response
The text was updated successfully, but these errors were encountered: