Skip to content

Upstream failures surface as bare status codes, Groq errors swallowed #18

Description

@royalpinto007

Problem

Connector failures throw bare status codes (no statusText/body), and aiChat never checks r.ok: a Groq 401 returns HTTP 200 with {reply: ""}.

Where

src/connectors.ts (`Shopify ${res.status}` etc.) + src/index.ts (aiChat, no r.ok check).

Acceptance

Add failing tests first with stubbed 429/401 upstreams, expecting errors naming the status text (or Groq error body) instead of a bare number or empty reply. 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