WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

Failed to ask a question, if import a sample dataset before start the AI service

Open ReddHung opened this issue 9 months ago • 1 comments

Describe the bug If a sample dataset is imported before the AI service has finished starting up, the AI service may respond with an error when asked a question.

To Reproduce Steps to reproduce the behavior:

  1. install from wren-launcher-darwin binary v0.2.0
  2. selecting a sample dataset as soon as the WrenAI UI opens. (usually AI service has not finished starting up)
  3. ask question from WrenAI UI
  4. See error "Failed to create asking task"

Screenshots wrenai_ui_log wrenai_ai_log wrenai_browser

Desktop (please complete the following information):

  • OS: MacOS 14.4.1
  • Docker: v4.29.0
  • Browser: Chrome

WrenAI Information

  • Version: 0.2.0

ReddHung avatar Apr 26 '24 05:04 ReddHung

@ReddHung thanks for reporting.

We'll see if we can add some kind of mechanism that wait for AI service & engine to start before we serve user requests.

cc @onlyjackfrost

wwwy3y3 avatar Apr 26 '24 06:04 wwwy3y3

fix in PR #220

onlyjackfrost avatar May 15 '24 03:05 onlyjackfrost