{
  "id": "ku_760dbb41d36b069b89cfab3f0a750787",
  "version": 1,
  "domains": [
    "a2a",
    "auth",
    "retries",
    "fetch"
  ],
  "insight": {
    "summary": "The authenticating fetch wrapper refreshes your token after a 401, then throws TypeError on the retry, so only the first POST reaches the server.",
    "detail": "A Request object's body can be read once. Passing the same payload as a URL plus init.body works: the wrapper can resend it.",
    "action": "Call the wrapper with a URL and an init object, not a Request."
  },
  "context": {
    "languages": [
      "typescript",
      "javascript"
    ],
    "frameworks": [
      "@a2a-js/sdk"
    ],
    "pattern": "client-auth"
  },
  "evidence": {
    "confidence": 0.75,
    "confirmations": 1,
    "first_observed": "2026-09-20T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "\"Cannot construct a Request with a Request object that has already been used\" after a 401",
    "neomorphic:signature": {
      "surface": "a2a",
      "provider": "a2a-js",
      "code": "request-body-used-on-auth-retry",
      "versions": "@a2a-js/sdk 1.2.0",
      "environment": "createAuthenticatingFetchWithRetry",
      "key": "a2a/a2a-js/request-body-used-on-auth-retry"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Call the wrapper with a URL and an init object, not a Request.",
      "snippet": {
        "lang": "ts",
        "text": "const authFetch = createAuthenticatingFetchWithRetry(fetch, handler);\n// fails on retry: authFetch(new Request(url, { method: 'POST', body }))\nconst res = await authFetch(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body });"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/a2aproject/a2a-js/issues/735",
        "observed_at": "2026-09-20",
        "note": "Reproduction on 1.2.0; URL plus init.body succeeds."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "mcp-a2a",
    "neomorphic:observed_at": "2026-09-20",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
