Skip to content

/manage/tools/api crashes in v1.59.1 due to OpenAPI generation error on /api/users/firstDayOfWeek #5497

@WadohS

Description

@WadohS

Bug

Opening /manage/tools/api fails with:

  • This page couldn’t load
  • A server error occurred. Reload to try again.

Version

  • Homarr v1.59.1

Deployment context

  • Docker / Runtipi
  • SQLite
  • AUTH_PROVIDERS=credentials

Reproduction

  1. Log into Homarr
  2. Open /manage/tools/api
  3. The page fails to render

Observed behavior

The page shows a server error and reload prompt.

Expected behavior

The API tools / OpenAPI page should render normally.

Server logs

Error: Zod schema of type `custom` at properties > paths > /api/users/firstDayOfWeek > patch > content > application/json > schema > properties > firstDayOfWeek cannot be represented in OpenAPI. Please assign it metadata with `.meta()`
digest: '2796008985'

This is emitted when opening /manage/tools/api.

Notes

  • Login works
  • Dashboard works
  • Other management pages load correctly:
    • /manage/integrations
    • /manage/settings
    • /manage/apps
    • /manage/boards
    • /manage/users
  • The problem appears isolated to the API tools / OpenAPI page
  • The issue reproduces consistently
  • Reverse proxy is in front, but the error is server-side inside Homarr and does not appear related to proxy config

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