Skip to content

[Bug]: When using the API to study, the error "Invalid state: Controller is already closed" appears. #124

@zhoufei0622

Description

@zhoufei0622

Bug Description

Error during stream execution: TypeError: Invalid state: Controller is already closed
at Object.start (.next/server/app/api/research/route.js:15:680) {
code: 'ERR_INVALID_STATE'

Steps to Reproduce

1.使用GET/POST方式以API形式进行研究
2.偶尔出现Invalid state: Controller is already closed

Expected Behavior

正常结束

Screenshots

No response

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

大佬,这种controller已被关闭错误偶尔会出现的原因是什么?应该如何解决呢?

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