Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

/displayname returns non-JSON body #8029

Closed
@KitsuneRal

Description

@KitsuneRal

Description

An attempt to call /profile/{}/displayname with an empty body results (rightfully) in a 400 error, with plain text "Unable to parse name" in the response. The expected error payload is something about (could also be M_NOT_JSON instead of M_BAD_JSON):

{
    "errcode": "M_BAD_JSON",
    "error": "Unable to parse name" 
}

Version information

  • Homeserver: matrix.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    Z-Help-WantedWe know exactly how to fix this issue, and would be grateful for any contributionz-bug(Deprecated Label)z-p3(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions