Skip to content

/api/games/user/{username} returns generic site 404 instead of API response #667

Description

@mbratmann

Issue

GET /api/games/user/{username} returns the generic "Page not found" SPA page (404, text/html) instead of the documented game export response.

Repro

curl -v 'https://lichess.org/api/games/user/DrNykterstein?max=1' --header 'Accept: application/x-chess-pgn'

Expected

PGN export of the user's games.

Actual

HTTP status 404, response content-type text/html, body is the standard Lichess "Page not found" page.

Ruled out

  • Not account-specific -- tested different existing accounts.
  • Not header-specific -- same with any/no Accept header.
  • Not a general /api/ or network/DNS/TLS issue -- /api/user/{username} for example works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions