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

blazor server模式下。多个任务提交异常 #192

Closed
Seanxwy opened this issue Jun 29, 2023 · 7 comments
Closed

blazor server模式下。多个任务提交异常 #192

Seanxwy opened this issue Jun 29, 2023 · 7 comments

Comments

@Seanxwy
Copy link

Seanxwy commented Jun 29, 2023

blazor server模式下。多个任务提交异常。提交任务无法正常返回,然后导致后面主线程和await的任务无法执行。在hangfires上可以看到提交的第一个任务是正常的。

@yuzd
Copy link
Owner

yuzd commented Jul 15, 2023

有错误日志吗?

@Seanxwy
Copy link
Author

Seanxwy commented Jul 30, 2023

image
我有使用try catch,并没有抛出异常。但是调试的时候走到这里,就中止了

@yuzd
Copy link
Owner

yuzd commented Aug 9, 2023

是result.IsSuccess = false的话 你看一下 result.ErrMessage

@Seanxwy
Copy link
Author

Seanxwy commented Aug 9, 2023

不会走到result.isSuccess =false。直接挂了。也没有走到catch

@yuzd
Copy link
Owner

yuzd commented Aug 9, 2023

还会有这种情况
有能再现的demo吗?

@Seanxwy
Copy link
Author

Seanxwy commented Aug 9, 2023

更新了?没有尝试,我现在只能放到contorller用httpclient来处理了。回头我可以再试一下。

@yuzd
Copy link
Owner

yuzd commented Apr 18, 2024

blazor不是很熟悉,不确定是不是header头没有带上auth
有可以调试的话应该能很快定位到问题

@yuzd yuzd closed this as completed Apr 18, 2024
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