Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【bug】未捕获异常 packages/rpc/src/common/proxy/http-proxy-creator.ts #219

Open
wmlgl opened this issue Dec 6, 2024 · 1 comment

Comments

@wmlgl
Copy link

wmlgl commented Dec 6, 2024

在函数createChannel中executeTask return的是一个promise,但未捕获异常,导致异常中断,请求无法结束。
截图发失败了,基本原因是createTask返回了async函数,在调用executeTask 时调用了meta.task(), 这是一个async函数,然后没有任何地方有处理异常。

@muxiangqiu
Copy link
Member

“但未捕获异常,导致异常中断,请求无法结束”

这里为啥会导致请求无法结束。

async 函数没有处理异常,这里说的异常是指什么异常 http 请求自身的异常吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants