Kibana Error: Failed to retrieve user profile for the current user


[2023-09-03T03:38:56.269+00:00][ERROR][] Failed to retrieve user profile for the current user [sid=fAdZoxzz0=]: Cannot read properties of undefined (reading 'uid')


The error message “Cannot read properties of undefined (reading ‘uid’)” means that the user profile plugin is trying to access the uid property of the current user, but the current user is undefined. This can happen if the user is not logged in or if the user’s session has expired.

To fix this error, you need to make sure that the user is logged in and that their session is still valid. You can do this by checking the sid cookie. If the sid cookie is not present or is invalid, you need to log the user in again.

Once the user is logged in, the user profile plugin should be able to retrieve the user’s profile successfully.

Here are some additional things to keep in mind:

  • The sid cookie is typically set by the authentication plugin.
  • The authentication plugin may also set other cookies, such as the username cookie and the email cookie.
  • If you are using a third-party authentication plugin, you should consult the documentation for that plugin for more information on how to troubleshoot this error.

I hope this helps! Let me know if you have any other questions.

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x