Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Ignore failing group users response #2295

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/stores/GroupStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ class GroupStore extends EventEmitter {
return;
}

// Requests to Synapse for group members may fail with an internal
// error in the presence of duplicate invites.
// https://github.com/matrix-org/synapse/issues/2633
if (stateKey === this.STATE_KEY.GroupMembers &&
err.httpStatus === 500 && err.message === "More than one row matched") {
console.error(`Ignoring known failure to get resource ${stateKey} for ${groupId}`, err);
return;
}

console.error(`Failed to get resource ${stateKey} for ${groupId}`, err);
this.emit('error', err, groupId);
}).finally(() => {
Expand Down