midday-ai / midday

Run your business smarter 🪄
https://midday.ai
GNU Affero General Public License v3.0
5.41k stars 493 forks source link

Connection error when interacting with Assistant #281

Open anteriovieira opened 5 days ago

anteriovieira commented 5 days ago

When asking a complex question to the Midday AI assistant, the application encountered a connection error. The error message "Uncaught (in promise) Error: Connection closed" appeared in the browser console, suggesting that the connection was terminated unexpectedly.

This issue may be caused by the AI generating a response that exceeds the size limit for the connection, resulting in a premature closure. The error occurred during an interaction with the AI assistant, potentially disrupting the user experience.

Steps to reproduce:

  1. Open the Midday AI application
  2. Ask a complex question that might require a lengthy response

The application displays a client-side exception, and the browser console shows a connection closed error, preventing the AI from completing its response.

image
anteriovieira commented 5 days ago

I think it can be related.

https://github.com/vercel/ai-chatbot/issues/291#issuecomment-2386532815