Not able to run Keycloak-init

Hi team,

I am not able to run the keycloak-init, it keeps on failing with the below error.

http://inji-keycloak/auth
Traceback (most recent call last):
  File "keycloak_init.py", line 664, in main
    ks = KeycloakSession('master', server_url, user, password, ssl_verify)
  File "keycloak_init.py", line 21, in __init__
    verify=ssl_verify)
  File "/usr/local/lib/python3.7/site-packages/keycloak/keycloak_admin.py", line 98, in __init__
    self.get_token()
  File "/usr/local/lib/python3.7/site-packages/keycloak/keycloak_admin.py", line 1888, in get_token
    self._token = self.keycloak_openid.token(self.username, self.password, grant_type=grant_type)
  File "/usr/local/lib/python3.7/site-packages/keycloak/keycloak_openid.py", line 201, in token
    return raise_error_from_response(data_raw, KeycloakGetError)
  File "/usr/local/lib/python3.7/site-packages/keycloak/exceptions.py", line 108, in raise_error_from_response
    response_body=response.content)
keycloak.exceptions.KeycloakGetError: 404: b'<html><head><title>Error</title></head><body>404 - Not Found</body></html>'

I tried with http://inji-keycloak as well.

I am able to access my keycloak and I am able to get the access token using /auth/realms/master/protocol/openid-connect/token as well.

Dear @Vijay_S ,

Thank you for reaching out, We are looking into your query and one of our expert colleagues will respond here with solution input.

Best Regards
Team MOSIP

http://inji-keycloak/auth/ trailing / was missing.

@Vijay_S Was the issue resolved.

Yeah Rakshith. Thanks for the response.