Closed dangra closed 1 month ago
Thanks for the PR @dangra! I've approved, but I'll defer to @thomaspoignant for a final approval.
Good catch @dangra and thanks for the fix. I will release a new version of the provider including this fix.
PS: thanks @beeme1mr I missed this PR before :(
This PR
fix a panic when /v1/flag/change returns an http status code other than 200 and 304.
Related Issues
Fixes #578 , a bug introduced in #547
Notes
In my case the GOFF endpoint returned 404 but the nil error is more subtle and worth fixing.
the 404 isn't logged by go-feature-flag daemon but I captured it by capturing packets:
How to test
Point the client to a webserver that responds with 404 on /v1/flag/change
I am using go-feature-flag v1.24.0 on my setup.