botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
66 stars 81 forks source link

[BUG] No Q&A or Intents, generates warning / error in logs #1464

Closed ptrckbp closed 2 years ago

ptrckbp commented 2 years ago

Describe the bug A chatbot without intents or Q&As will show this warning in the logs :

Error extracting metadata for incoming text: Cannot read property 'intents' of undefined

To Reproduce Steps to reproduce the behavior:

  1. Create a chatbot from an empty template
  2. Click the "Train Chatbot" button
  3. Type something in the emulator
  4. See error in logs

Expected behavior no warning should appear.

Environment (please complete the following information):

Additional context It seems like you can safely ignore it. Otherwise add one question in the Q&A. This will likely be solved in the next release.

franklevasseur commented 2 years ago

Hi @ptrckbp!

I'm 99.99% confident that this issue was fixed by this PR: botpress/botpress#5497.

Can you please try out the fix from sources or wait for it to be released so you can try the binary ? It will be available in the next release.

I'll close this issue for now. Feel free to reopen if I'm wrong or if you want to add any other details.

Thank you for your contribution.

François