API client shows [object Object] for a FastAPI 422 detail array

Open
#1,704 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@xTITUSMAXIMUSX is already working on this.

Since Nov 27, 2026.

Assessment

This issue has not been assessed yet.

Description

bug patch needed UI/UX

ApiClient.request sets errorMessage = errorData.detail even when FastAPI's 422 detail is the pydantic error array, so every request-validation failure reaches the user as "[object Object]" instead of the field message. Join the msg of each array item (or fall back to the generic failure key) when detail is not a string.

Where: frontend/src/lib/api/client.ts (request)
Version: 1.4 and 1.5
fingerprint: frontend:apiClient.detail-array:all

Dominant language
TypeScript
Stars
504
Forks
69
Avg merge
55m
Merged PRs (30d)
205

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Community-VyProjects/VyManager

All issues in Community-VyProjects/VyManager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.