Thanks to visit codestin.com
Credit goes to github.com

Skip to content

useXChat官方示例存在错误:BodyStreamBuffer was aborted #1222

@remberi

Description

@remberi

重现步骤

在线示例链接:https://codesandbox.io/p/sandbox/f4x3zr?file=%2Fdemo.tsx%3A124%2C11-124%2C26

步骤:
1.在官网的useXChat组件中,【模型接入】codeSandbox示例代码中
2.输入任意字符,然后在对话框输出过程中按取消,会抛出异常
3.异常提示:BodyStreamBuffer was aborted

Image

当前行为

异常直接抛出,加try也无法阻止

预期行为

正常停止输出,显示请求已被取消

上下文

No response

版本

1.6.1

您在哪些浏览器上遇到了这个问题?

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions