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

Cannot train chatbot / An error ocurred in NLU Server #1759

Open
pedrofnts opened this issue Aug 3, 2023 · 2 comments
Open

Cannot train chatbot / An error ocurred in NLU Server #1759

pedrofnts opened this issue Aug 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@pedrofnts
Copy link

Describe the bug
I'm trying to train a chatbot in Portuguese.

Everytime I click "Train chatbot", the button reloads and nothing happens.

On logs, there is:

An error occured when training [Error, An error occured in NLU server: child "intents" fails because ["intents" at position 0 fails because [child "utterances" fails because ["utterances" is required]]]]
STACK TRACE
Error: An error occured in NLU server: child "intents" fails because ["intents" at position 0 fails because [child "utterances" fails because ["utterances" is required]]]
    at NLUClient._throwError (/botpress/modules/.cache/module__a0c1c3e4de8832e0915fa84c8fa94151edcc03521e2be51b86e69af2510e8f85/dist/backend/application/nlu-client/index.js:133:11)
    at NLUClient.startTraining (/botpress/modules/.cache/module__a0c1c3e4de8832e0915fa84c8fa94151edcc03521e2be51b86e69af2510e8f85/dist/backend/application/nlu-client/index.js:82:19)
    at async BotState.startTraining (/botpress/modules/.cache/module__a0c1c3e4de8832e0915fa84c8fa94151edcc03521e2be51b86e69af2510e8f85/dist/backend/application/bot/bot-state.js:33:23)
    at async Trainer.train (/botpress/modules/.cache/module__a0c1c3e4de8832e0915fa84c8fa94151edcc03521e2be51b86e69af2510e8f85/dist/backend/application/bot/trainer.js:41:9)

How to solve that?

To Reproduce
Steps to reproduce the behavior:

Training a chatbot with intents in portuguese.

Environment (please complete the following information):

  • OS: Ubuntu 20.04
  • NodeJS: 18.17.0
@pedrofnts pedrofnts added the bug Something isn't working label Aug 3, 2023
@Mikhail84
Copy link

I couldn't start train process too. I tried to find problem and seen that language server docker container not up, and fails every time i restart it. So, i had update docker image, create new containers with new version of Botpress (12.30.10). Now Botpress training ok

@Naroh091
Copy link

Naroh091 commented Sep 1, 2023

I got the same error today and found out that I had some intents without any expressions. That's why it says that 'utterances is required'.

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

3 participants