element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.02k stars 1.96k forks source link

Element-R: scary warnings from key gossip store #26527

Closed richvdh closed 9 months ago

richvdh commented 10 months ago
2023-11-07T23:14:43.637Z W Error decrypting event (id=$tujhmaqviaS12i4L6Ces2Ig80H27c8s51FvPAOKZPM8 type=m.room.encrypted sender=@matthew:matrix.org room=!UcgyhoigetVICUfvRw:matrix.org ts=2023-11-07T21:51:05.603Z): DecryptionError[msg: DomException ConstraintError (0): Unable to add key to index 'by_info': at least one key does not satisfy the uniqueness requirements., session: NRTGMk0PiweE2HYUKH2d0o4+cbMnH52lo5l6iRdcpBc|s62/7/yixJuGRafU4+g7OXyK2JaQBmLWz7gH3+ecZU4]

I think this only happens when (a) decryption failed and (b) there is already a keyshare request in flight; so it is harmless, other than obscuring the underlying reason for decryption. Still it is a source of logspam and we should fix it.

richvdh commented 9 months ago

These will go away as a side-effect of https://github.com/vector-im/element-web/issues/26524

richvdh commented 9 months ago

Closing for now, since key-requests are disabled.