You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloudharness_django/services/events.py in event_handler at line 36
KeycloakAuthenticationError: 401: b'{"error":"HTTP 401 Unauthorized"}'
File "cloudharness/auth/keycloak.py", line 42, in wrapper
return func(self, *args, **kwargs)
File "cloudharness/auth/keycloak.py", line 440, in get_user
user = admin_client.get_user(user_id)
File "keycloak/keycloak_admin.py", line 727, in get_user
return raise_error_from_response(data_raw, KeycloakGetError)
File "keycloak/exceptions.py", line 192, in raise_error_from_response
raise error(
KeycloakGetError: 404: b'{"error":"User not found"}'
File "cloudharness/auth/keycloak.py", line 440, in get_user
user = admin_client.get_user(user_id)
File "keycloak/keycloak_admin.py", line 727, in get_user
return raise_error_from_response(data_raw, KeycloakGetError)
File "keycloak/exceptions.py", line 192, in raise_error_from_response
raise error(
UserNotFound: 7a305088-b8fa-4285-afec-af9d6dc2ef13
File "cloudharness/events/client.py", line 252, in _consume_task
handler(event_client=self, app=app, message=message.value)
File "cloudharness_django/services/events.py", line 50, in event_handler
raise e
File "cloudharness_django/services/events.py", line 36, in event_handler
kc_user = auth_client.get_user(resource_path[1])
File "cloudharness/auth/keycloak.py", line 45, in wrapper
return func(self, *args, **kwargs)
File "cloudharness/auth/keycloak.py", line 442, in get_user
raise UserNotFound(user_id)
This is happening after a user is just create as can be seen from the event:
cloudharness_django/services/events.py in event_handler at line 36
This is happening after a user is just create as can be seen from the event:
I suppose that we are sending CREATE on DELETE user events, or the user is not available because it's just created (which I doubt)
The text was updated successfully, but these errors were encountered: