Skip to content

[BUG] stream errors not propagated properly #4749

@jiapingzeng

Description

@jiapingzeng

What is the bug?
At the moment, when error occurs here (example: when chat agent is not able to access memory service), the response sent to the user is:

data: {"error": "[ip-10-0-105-16.us-west-2.compute.internal][10.0.105.16:9300][cluster:admin/opensearch/ml/execute/stream]"}

Which is not very helpful. We should show a proper error explaining what went wrong instead.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the expected behavior?
A clear and concise description of what you expected to happen.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions