Replies: 2 comments 1 reply
-
流不会执行中间件,无法通过中间件处理,需要自行保证正确性。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
流错误需要在流内部完全处理掉,这就不会阻断影响程序了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem(描述问题)
配置了 koa-sse-stream 如下图
如果流报错,会出现错误,阻断运行
请问如何处理才能不阻断运行?
Midway Versions(Midway 版本)
"@midwayjs/bootstrap": "^3.12.0",
"@midwayjs/cache-manager": "^3.14.7",
"@midwayjs/core": "^3.12.0",
"@midwayjs/decorator": "^3.12.0",
"@midwayjs/http-proxy": "^3.14.9",
"@midwayjs/info": "^3.12.0",
"@midwayjs/koa": "^3.12.0",
"dotenv": "^16.4.1",
"googleapis": "^133.0.0",
"install": "^0.13.0",
"koa-sse-stream": "^0.2.0",
"openai": "^4.28.0",
"short-uuid": "^4.2.2",
"stream": "^0.0.2",
Beta Was this translation helpful? Give feedback.
All reactions