mattermost-plugin-ai
mattermost-plugin-ai copied to clipboard
Bug: Plugin crashes when API request faces network failure
Steps to reproduce the behavior
- Create an API that kills the network connection half way through sending a response.
- Observe that when the plugin interacts with it, it crashes with an 'EOF' in the log.
Expected behavior
The plugin does not crash when a connection is severed.
Additional context (optional)
- Sev 1: Affects critical functionality without a workaround
Whilst the plugin often restarts automatically, the downtime causes messages to be ignored / on-going requests to die.