midday-ai / midday

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

Connection error when interacting with Assistant #281

Closed anteriovieira closed 6 days ago

anteriovieira commented 1 month 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 1 month ago

I think it can be related.

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

pontusab commented 2 weeks ago

Thank you, I will have a look!

pontusab commented 6 days ago

Should be fixed now!