Error messages hide the server's reason: users see only '400 Bad Request'

Open Beginner friendly
#232 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@aman-code-io is already working on this.

Since Dec 3, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start in app/src/lib/stac-api/client.ts around line 104 to trace how StacApiError.detail is captured, then find the toast and shared error panel that display failures. Check how detail lists are represented and add or update a test for a 400 response with a detail list. Done means the toast and panel show both the field and reason.

Written by the indexing model from the issue text.

Description

bug good first issue ready

Found in the 2026-11-29 whole-repo review. Reported by a reviewer from reading the code.

Problem

app/src/lib/stac-api/client.ts (~line 104) captures the catalog's explanation in StacApiError.detail, but no component ever displays it. Toasts read "Create failed: STAC API error: 400 Bad Request". For validation errors the detail is a list but is typed as text.

How it goes wrong

A duplicate id or an invalid field gives the user nothing to act on. (This is how #80 looks to a user.)

Suggested fix

Format the detail (including lists) into the error message and show it in toasts and the shared error panel.

Acceptance criteria

  • Test: a 400 with a detail list renders the field and reason
Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

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 TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.