-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing with 400 Bad Request #1270
Comments
Hi @DenuxPlays, thank you for reporting this. Could you please update your Keycloak version to 26.1 and test again? |
The error was a wrongly escaped regex validator. Its just a request to Print the response from keycloak as it already would've told me what was wrong. |
@DenuxPlays, my response was based on a similar issue with newly introduced attributes in recent Keycloak Realm Representations that have already been fixed. If you've found a solution, then that's perfect! :) |
so can this be closed? |
No This is not really a bug. More like a "Hey if keycloak does not return a success http code just print the response from keycloak" Where you log this:
just add:
So that these kind of issues can be easily identified without needing to intercept the actual http traffic. |
I have added changes to log the Keycloak response when an error occurs. This will help identify issues without intercepting the network traffic, as you did. you can add a review #1271 thanks |
Current Behavior
When I try to import my realm.json I just get an error that keycloak returned 400.
Or
Currently it is impossible to tell what is wrong and it could be anything.
Expected Behavior
Log keycloak response so that I can tell what is wrong.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: