Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] "agent not found" when bot calls function of las2peer service #119

Open
FBasels opened this issue Jul 5, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@FBasels
Copy link
Contributor

FBasels commented Jul 5, 2022

  1. Summary - Sometimes, when a bot tries to call a function of another las2peer service, the Social Bot Manager can not find the las2peer bot agent

  2. Bug Details

    1. What? - Sometimes, the bot agent of single bots can not be found anymore. This results in an exception, when the bot tries to call a function of a las2peer service. A resubmit of the bot does not fix it. Currently, it can only be fixed by changing the name of the bot and then resubmit it.
    2. Where? - Good question. But it could also correlate with the webconnector of las2peer
    3. When?/How often? - The assumption is, that it happens sometimes after the SBM is restarted. However, it seems to be quite rarely and random.
    4. How?/Current state - Maybe here the log stating the missing agent and the following exception:

2022-06-28T16:38:32.578Z | mentoring/suggestions/getSuggestion ; {"msg":"any suggestions?","entities":{} ...
2022-06-28T16:38:32.578Z | Request: POST URI: mentoring/suggestions/getSuggestion Content: {"msg":"any suggestions? ...
2022-06-28T16:38:32.599Z | Connect Success
2022-06-28T16:38:32.599Z | agent not found
2022-06-28T16:38:32.599Z | java.lang.ClassCastException: class java.lang.String cannot be cast to class net.minidev.json.JSONObject (java.lang.String is in module java.base of loader 'bootstrap'; net.minidev.json.JSONObject is in unnamed module of loader 'app')
2022-06-28T16:38:32.599Z | at i5.las2peer.services.socialBotManagerService.SocialBotManagerService.performTrigger(SocialBotManagerService.java:1529)
2022-06-28T16:38:32.599Z | at i5.las2peer.services.socialBotManagerService.SocialBotManagerService.performIntentTrigger(SocialBotManagerService.java:1249)
2022-06-28T16:38:32.599Z | at i5.las2peer.services.socialBotManagerService.SocialBotManagerService$BotResource$4.run(SocialBotManagerService.java:990)
2022-06-28T16:38:32.599Z | at java.base/java.lang.Thread.run(Thread.java:831)

@FBasels FBasels added the bug Something isn't working label Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant