# Keycloak.X: Wired behaivor while running keycloak-config-cli test suite

**URL:** <https://forum.keycloak.org/t/keycloak-x-wired-behaivor-while-running-keycloak-config-cli-test-suite/10333>\
**Category:** Miscellanaeous\
**Created:** [August 1, 2021, 5:30pm UTC](https://forum.keycloak.org/t/keycloak-x-wired-behaivor-while-running-keycloak-config-cli-test-suite/10333 "2021-08-01T17:30:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkroepke](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jkroepke/32/497_2.png) [@jkroepke](https://forum.keycloak.org/u/jkroepke)\
**Post date:** [August 1, 2021, 5:30pm UTC](https://forum.keycloak.org/t/keycloak-x-wired-behaivor-while-running-keycloak-config-cli-test-suite/10333/1 "2021-08-01T17:30:02Z")

</div>

Hi,

I’m maintainer of [keycloak-config-cli](https://github.com/adorsys/keycloak-config-cli). I’m running a lot of tests to verify the functionality of keycloak-config-cli. That include some error cases. While tests are running, I’m generate some 500er HTTP Requests and NullPointerExceptions at keycloak side.

However Keycloak still works fine trough the test suite, while Keycloak.X is going crazy at some specific point and have some sideeffects after a specific 500 Internal Server error. Giving some hints:

- partialExports return 204 No Content
- createRealm returns 404 realm not found (but realms still created)
- createRealm returns the same response from previous request
- get on existing realm give 500 http internal server error

Some pictures from logs (I can provide them as text, too). The side effects are coming only in a chain (while running the test suite), however sending specific request through curl wont result in any error.

 ![Bildschirmfoto 2021-08-01 um 19.16.28](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/e/e44e1122fed368d08d72f81044343c61b7778b55.png)

The answer from first request is return again:

 ![Bildschirmfoto 2021-08-01 um 19.22.35](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/4/4e0eab06b39ef4b86e6e4e0ec5d29e235c4ea809.jpeg)

Create realm give 404 not found:

 ![Bildschirmfoto 2021-08-01 um 19.19.03](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/5/5ba1b6fdbcc031bc7eca990c74841d44a3277d1b.png)

I may have some trouble to report the error, since it not easy to extract to request.

The error can be reproducible by running

```auto
mvn clean verify -Dkeycloak.dockerImage=quay.io/keycloak/keycloak-x

```

from here: [GitHub - adorsys/keycloak-config-cli: Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.](https://github.com/adorsys/keycloak-config-cli.git)

Question: Are Keycloak.X maintainers interest to checkout what happens here? At the end, the effects are only happens if the user send incorrect requests to Keycloak (like flows with 256 character description). I guess most of the errors wont affect any users.
