element-hq / element-hq/synapse

Stuck invite: duplicate auth_events

Open
#18,888 5 comments 2 reactions 0 assignees View on GitHub
A-Invite A-Stuck-Invite
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

### Description

Stuck invite, cannot be accepted or declined just keep repeating. No active account in room to cancel invite. Error when trying to accept:

`Failed to join`

`MatrixError: [403] Event $iUgTqEfK_E9r00YQUk7GbX8Ncwqs3ptL2PgassMwpKY has duplicate auth_events for ('m.room.member', '@tekmad:beeper.com'): $ND2OhQgwc1q2kvX57wjg4ZisgVKhDh8pRpzEuwlqnvo and $2i8vas1r2secWen66__b2i1_Eyw5qNNvdQWRybAxMdY (https://matrix.beeper.com/_matrix/client/v3/join/!TXzTbnCqjPqseRFQAu%3Amatrix.org)`

### Steps to reproduce

Open Element, one pending invite.
Do you want to join TheHaunt?
Accept - duplicate auth_events
Decline - Nothing happens, invite still there.

### Homeserver

matrix.org

### Synapse Version

1.138.0rc1

### Installation Method

I don't know

### Database

?

### Workers

I don't know

### Platform

matrix.org

### Configuration

?

### Relevant log output

```shell
MatrixError: [403] Event $4WGGw2fbvIdXgiN69GmXkILAh1WM1zz3wrzIelxZKc4 has duplicate auth_events for ('m.room.member', '@tekmad:beeper.com'): $ND2OhQgwc1q2kvX57wjg4ZisgVKhDh8pRpzEuwlqnvo and $2i8vas1r2secWen66__b2i1_Eyw5qNNvdQWRybAxMdY (https://matrix.beeper.com/_matrix/client/v3/join/!TXzTbnCqjPqseRFQAu%3Amatrix.org)
```

### Anything else that would be useful to know?

Maybe related to https://github.com/element-hq/synapse/issues/18606

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the pending-invite behavior in Element and compare the duplicate-auth_events failure with related issue #18606; done should be demonstrated by an invite that can be accepted or declined without remaining stuck.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.