Skip to content

Badge endpoint (/badge/[...id]) returns HTTP 500 site-wide #15

Description

@kveita

Summary

The badge endpoint at https://smithery.ai/badge/<namespace>/<slug> returns HTTP 500 for every server, every namespace, every URL variant tested. The response body is empty (Content-Length: 0) and the server returns a generic Vercel 500 page.

Impact

Reproduction

curl -sI https://smithery.ai/badge/misakanet/misakanet
# HTTP/2 500

curl -sI https://smithery.ai/badge/brave
# HTTP/2 500

Debug info from response headers

  • x-matched-path: /badge/[...id] — the route is being hit
  • x-vercel-cache: MISS — fresh invocation each time
  • Content-Length: 0 — the function crashes before producing output
  • content-type is absent — no error page is rendered either

Expected behavior

The endpoint should return an SVG image (e.g. image/svg+xml) showing the server's Kin score, similar to how https://smithery.ai/servers/misakanet/misakanet renders the score in the page.

Additional context

The server page at https://smithery.ai/servers/misakanet/misakanet works fine and shows "82 /100" as the Kin score. The badge endpoint at /badge/[...id] is a separate route in the Next.js application that appears to be crashing.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions