Skip to content

Non-2xx registry responses discard the body, hiding the real error #15

Description

@royalpinto007

Problem

Non-2xx registry responses return only "Registry error: HTTP <status>", discarding the body's message/detail and hiding the real error.

Where

src/worker/mcp.ts (if (!res.ok) branch).

Acceptance

Add a failing test first with a 502 + JSON body, expecting the body's message surfaced, not just the status. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions