-
Notifications
You must be signed in to change notification settings - Fork 13.5k
fix: JS Error "Invalid Token" after reloading page with active Livechat #39713
Copy link
Copy link
Open
Labels
Description
Description:
A JavaScript error is triggered when a page embedding the Rocket.Chat Live Chat widget is reloaded while a conversation is currently in progress.
Steps to Reproduce:
Open a page with the integrated Live Chat widget.
Start a chat conversation (send/receive at least one message).
Reload the browser page (F5) while the chat session is active.
Observe the browser console.
Expected Behavior:
The widget should reload gracefully, re-establish the existing session, and display the previous message history without throwing errors.
Actual Behavior:
A JavaScript error is triggered (see screenshot/log below), potentially disrupting the widget initialization.

Server Setup Information:
- Version of Rocket.Chat Server: 8.2.1
- License Type: Starter
- Number of Users: 0-25
- Operating System: Debian
- Deployment Method: Docker
Client Setup Information
- Browser Version: Firefox 140.8.0
- Operating System: Windows 11
- Standard Livechat-Widget Installation
Reactions are currently unavailable