https://discord.gg/botpress logo
Disconnected error
# đŸ€help
f
Hi Botpress team, I’m experiencing a recurring issue with my embedded Botpress Cloud webchat on our website. If the chat window is left idle for a short period, it randomly disconnects and shows the following message: Webchat disconnected error Disconnected You've been disconnected from the conversation. Please refresh the page. Details: Botpress Cloud (Pay‑as‑you‑go plan) Webchat embedded via standard snippet Browsers tested: Chrome and Edge (latest versions) Occurs on multiple networks (not a local Wi‑Fi issue) Happens when the chat is idle, not while the user is actively typing After refreshing the page, the session is back Questions: Is this expected behavior with idle sessions in the embedded webchat? Is there a recommended way to keep the chat session alive longer or preserve the conversation without disconnecting? Does Botpress provide any configuration for session timeout or heartbeat to prevent this disconnect? Thank you in advance!
p
Do you have the storage in the webchat dashboard page set to local storage or session storage?
f
Local storage
This issue keeps coming - even while chatting. Please help solve it?
p
This is to be expected and not an issue per say.
f
It is to be expected that the chatbot disconnects constantly? How could we ever use it for professional use Leann? You cannot possibly mean that is not an issue?
p
The chatbot disconnects when the web socket loses its connection to our server, this can happen for example if the internet is not consistent or when your computer goes in sleep mode. The reason why you didn't see this behaviour before is that the disconnection would happen silently. We are now only showcasing this fact in a more transparent manner. I hope that clarifies why you are seeing this occur.
f
Hi Leanne, Thanks for explaining, but I believe this is still a significant UX issue for production use: - We understand that websocket connections can drop occasionally due to network conditions, browser behavior, or sleep mode. - The concern is not the drop itself, but that the end-user now sees a hard “Disconnected” error, even if the connection could be restored automatically. - This was previously handled silently, which resulted in a smoother customer experience. For a professional use case, it would be much better if: - The chat remains visible, preserving the conversation history. - A non-intrusive status message (e.g., “Connection lost – attempting to reconnect
”) is shown inside the chat area instead of replacing the entire interface. - The client automatically retries connection using exponential backoff until the connection is restored. - The user is only prompted to refresh if reconnection attempts fail after a defined threshold. This way, short-term disconnects (which are inevitable with websockets) would not make the chatbot look broken to customers. Could you confirm if this reconnection behavior can be configured today in Botpress Cloud, or if it could be added as an improvement? This would make a huge difference for anyone using the embedded webchat in a live, customer-facing environment. Thanks in advance,
Thanks for explaining, but I believe this is still a significant UX issue for production use: We understand that websocket connections can drop occasionally due to network conditions, browser behavior, or sleep mode. The concern is not the drop itself, but that the end-user now sees a hard “Disconnected” error, even if the connection could be restored automatically. This was previously handled silently, which resulted in a smoother customer experience. For a professional use case, it would be much better if: The chat remains visible, preserving the conversation history. A non-intrusive status message (e.g., “Connection lost – attempting to reconnect
”) is shown inside the chat area instead of replacing the entire interface. The client automatically retries connection using exponential backoff until the connection is restored. The user is only prompted to refresh if reconnection attempts fail after a defined threshold. This way, short-term disconnects (which are inevitable with websockets) would not make the chatbot look broken to customers. Could you confirm if this reconnection behavior can be configured today in Botpress Cloud, or if it could be added as an improvement? This would make a huge difference for anyone using the embedded webchat in a live, customer-facing environment. Thanks in advance,
p
As per discussed today, I agree with your feedback. Could you make a feature request with your feedback about the automatics reload possibility, that channel is where engineers get insights for their next tasks? Thanks!
l
having this issue as well. Please fix, it should never disconnect. @faint-match-12848 did u find a solution?
3 Views