Bugfix/Throw error to prevent SSE from retrying (#3281)

throw error to prevent SSE from retrying
This commit is contained in:
Henry Heng 2024-09-28 03:11:03 +01:00 committed by GitHub
parent 99cb8c32cb
commit 01ae2ac7c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -841,6 +841,7 @@ export const ChatMessage = ({ open, chatflowid, isAgentCanvas, isDialog, preview
async onerror(err) {
console.error('EventSource Error: ', err)
closeResponse()
throw err
}
})
}