Federation Room invite fails "PDU in invite state (index 0) violates the room event format" for room version 10 #2084
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#2084
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When inviting a Continuwuity user into a room hosted on another homeserver, the invite fails.
The room uses room version 10.
Continuwuity returns:
"InvalidParam: PDU in invite state (index 0) violates the room event format"
Debug log shows:
"Invite state event idx=0"
"Invite state event is not a PDU"
The received invite state contains stripped state events, starting with m.room.create.
Example:
{
"content": {
"room_version": "10"
},
"sender": "@user:server",
"state_key": "",
"type": "m.room.create"
}
It looks like Continuwuity expects a full PDU here, but the federation invite contains stripped state events.
Steps to reproduce:
Logs:
2026-08-01T19:14:08.817369Z DEBUG invite:
Validating invite room state for invite request
room_version=V10
2026-08-01T19:14:08.817392Z TRACE invite:
Raw invite state:
[
Stripped({
"content": {
"creator": "@user:example.org",
"room_version": "10"
},
"sender": "@user:example.org",
"state_key": "",
"type": "m.room.create"
})
]
2026-08-01T19:14:08.817405Z TRACE invite:
Invite state event idx=0
2026-08-01T19:14:08.817410Z DEBUG invite:
Invite state event is not a PDU idx=0
2026-08-01T19:14:08.817438Z DEBUG error:
Client error:
InvalidParam: PDU in invite state (index 0) violates the room event format
2026-08-01T19:14:08.817488Z DEBUG router:
400 Bad Request
Request:
PUT /_matrix/federation/v2/invite/{room_id}/{event_id}
Also invites to other rooms with other rooms versions doesnt work
Could this be #1971?
@Henry-Hiles wrote in #2084 (comment):
Seems like it. Thanks!