Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Keycloak API stability improvements #1362
There are multiple reports of random API failures, all point back to keycloak. It appears that keycloak will just randomly not return data we know it has.
I'm still not able to reliably reproduce the bug, but I did find a couple issues that are likely culprits:
This PR uses a cloned and hacked version of keycloak-admin that will check for a valid access token before every request and get a new one if necessary.
Still TODO is better error handling. In my testing, this change makes the 404 group errors go from at least every minute to non-existent. However I still am getting some user 404 errors.
At the very least, this as a hotfix should improve things.
Bugfix - Check for expired keycloak token before requesting data (#1337)