There are two functions I think are of interest which are loginUser, and getUserId
TL;DR
User is getting an error when logged in and trying to use the chatbot service. User has tried debugging but is unable to test locally. User asks for help to find where the exception is thrown. Two functions, loginUser and getUserId, are potentially causing the issue.
Solution: It is not explicitly stated in the thread what the solution is.