mattermost / mattermost-plugin-ai

Mattermost Copilot plugin supporting multiple LLMs
https://mattermost.com/copilot
Apache License 2.0
136 stars 30 forks source link

Bug: Plugin crashes when API request faces network failure #92

Open a3957273 opened 1 year ago

a3957273 commented 1 year ago

Steps to reproduce the behavior

  1. Create an API that kills the network connection half way through sending a response.
  2. 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)

Whilst the plugin often restarts automatically, the downtime causes messages to be ignored / on-going requests to die.