Skip to content

Synapse media repository returns spec incompliant errors #18749

@t3chguy

Description

@t3chguy

Description

raise SynapseError(
400, "Media upload limit exceeded", Codes.RESOURCE_LIMIT_EXCEEDED
)
is not compliant with the spec

The spec states

The error MUST have an admin_contact field to provide the user receiving the error a place to reach out to.

https://spec.matrix.org/v1.15/client-server-api/#other-error-codes

Steps to reproduce

  • Breach an upload limit

Homeserver

Any

Synapse Version

Latest

Installation Method

Docker (matrixdotorg/synapse)

Database

Any

Workers

Single process

Platform

Any

Configuration

Default

Relevant log output

None

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions