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

fix invalid parent message id after user abort request in api mode #389

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

yongman
Copy link
Contributor

@yongman yongman commented Feb 24, 2024

When user abort receving reply during response, websocket will be closed in client side, it will cause exception in server reply. But in the exception handling, reply to websocket will generate a nested exception that result to the following code can not be executed.

So we should wrap the reply with try..except( we can just ignore the error) during exception handling.

Signed-off-by: yongman <yming0221@gmail.com>
@moeakwak moeakwak merged commit 038cf8d into chatpire:dev Feb 24, 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

Successfully merging this pull request may close these issues.

2 participants