This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
User directory gets stuck when encountering non-string display name #8220
Comments
There was some conversation around this, summary below:
The current fix being used is: diff --git a/synapse/storage/databases/main/user_directory.py b/synapse/storage/databases/main/user_directory.py
--- a/synapse/storage/databases/main/user_directory.py
+++ b/synapse/storage/databases/main/user_directory.py
@@ -397,7 +397,7 @@ class UserDirectoryBackgroundUpdateStore(StateDeltasStore):
user_id,
get_localpart_from_id(user_id),
get_domain_from_id(user_id),
- display_name,
+ str(display_name),
),
)
else: |
It was also mentioned that the stats code has a similar background process which likely has a similar bug in it. |
This was referenced Sep 1, 2020
This was referenced Sep 15, 2020
Closed
Closed
10 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Stack trace:
Basically we're passing an array into a query that expects it to be a string. We should a) handle this error and b) figure out how to stop it from tight looping trying to handle that event.
(Internal sentry link: https://sentry.matrix.org/sentry/synapse-matrixorg/issues/124595/)
The text was updated successfully, but these errors were encountered: