Skip to content

fix: JS Error "Invalid Token" after reloading page with active Livechat #39713

@web-uni-jena

Description

@web-uni-jena

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.
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions