Error: cannot read properties of undefined (reading slice)

Description

Server Setup Information

  • Version of Rocket.Chat Server: 3.8.14
  • Operating System: windows 10
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy:
  • Firewalls involved: no

Any additional Information

Receiving this error while enabling user encryption in direct message
1

Hi! Welcome to our community.

3.8.14 is a really old version. if this is an issue, probably wont be fixed.

When does it happen? Can you see any outstanding log in browser console or network requests?

but this is the latest desktop version downloaded from your website.

The Desktop App is a “client shell” for the web server version.

So if you use the Desktop App to access a 5.4.0 or 3.8.14 server, it will behave differently, depending on the server version.

Let me know if this helps :slight_smile:

thanks for the information provided. How can I access the latest version with the desktop app? Is there any link?

Hi!
For that, you need to upgrade the server.

Hello,
Haveing such problem with ‘Cannot read properties of undefined (reading ‘slice’)’ when:

  • I reset E2E key on Android rocket chat, set new E2E password
  • Reopen Windows Rocket Chat app, enter new E2E password when it prompts
  • Click on user and enable encryption, trying to send a message
    Rocket Chat Windows Client 3.8.14, Rocket Chat Server 5.4.1, Rocket Chat Android client 4.34.0.36626

Also: if you try to reset E2E key, after restarting Desktop client and entering password, app do not show new E2E key to save, however in Mongodb keys are new. Still you can read encrypted messages on the desktop app. When you try to change E2E password it shows message error: “Failed to persist keys as they are not strings.”