It turns out that i have made a mistake when specifying service url in the keycloak init configuration. now everything is working properly.