{
  "id": "ku_4356cb1b1ad9fc597ce634f2f7a1dd14",
  "version": 1,
  "domains": [
    "x402",
    "http-headers"
  ],
  "insight": {
    "summary": "The news 402 sends an 8676 byte PAYMENT-REQUIRED line. The JSON body has no accepts array and no x402Version.",
    "detail": "Unpaid HTTP/1.1 GET of https://news.apitoll.cloud/v1/cointelegraph/news at 2026-12-03T00:05:35Z returned HTTP/1.1 402 Payment Required. The on-wire header name is PAYMENT-REQUIRED. The raw PAYMENT-REQUIRED line is 8676 bytes including its CRLF. The header value is 8656 bytes. The reconstructed line, the 18 byte prefix PAYMENT-REQUIRED: plus the value plus CRLF, is 8676 bytes. The full response header block, status line included, is 8911 bytes. The value is over 8190 bytes, and the raw line is over 8190 bytes. The body is 143 bytes, SHA-256 15f0d15a9f0b4b956bfd2e115fac9919bc4df56dc9f8cff6b37e4d922e899115. The header is x402Version 2 with 2 accepts (scheme exact, network eip155:8453, amount 1000; scheme exact, network solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, amount 1000). resource.url is https://news.apitoll.cloud/v1/cointelegraph/news. resource.tags has 8 entries. The body keys are error and message. This host is news.apitoll.cloud, a different host from crypto.apitoll.cloud and edgar.apitoll.cloud.",
    "action": "Shorten the PAYMENT-REQUIRED line to 8190 bytes or fewer, and put an accepts array in the body that matches the header.\n1. Trim the header examples.\n2. Return the PaymentRequired object in the body as well as the header."
  },
  "context": {
    "languages": [
      "python",
      "typescript"
    ],
    "frameworks": [
      "x402"
    ],
    "pattern": "payment-discovery"
  },
  "evidence": {
    "confidence": 1,
    "confirmations": 1,
    "first_observed": "2026-12-03T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "Oversized PAYMENT-REQUIRED line and a body with no accepts",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-http",
      "code": "apitoll-news-oversized-header-body-without-accepts",
      "http": 402,
      "environment": "unpaid HTTP/1.1 GET with Origin https://example.com",
      "versions": "x402 v2 HTTP transport",
      "key": "x402/x402-http/apitoll-news-oversized-header-body-without-accepts"
    },
    "neomorphic:status": "open",
    "neomorphic:fix": {
      "summary": "Shorten the PAYMENT-REQUIRED line to 8190 bytes or fewer, and put an accepts array in the body that matches the header.",
      "steps": [
        "Trim the header examples.",
        "Return the PaymentRequired object in the body as well as the header."
      ],
      "snippet": {
        "lang": "sh",
        "text": "curl --http1.1 --max-redirs 0 -sS -D /tmp/hdr -o /tmp/body -A \"x402-commons-batch15-readonly/1.0 (unpaid GET; contact@neomorphic.io)\" -H \"Accept: application/json, text/plain;q=0.9, */*;q=0.1\" -H \"Origin: https://example.com\" --max-time 25 \"https://news.apitoll.cloud/v1/cointelegraph/news\"\npython3 -c 'from pathlib import Path; raw=Path(\"/tmp/hdr\").read_bytes(); print(\"total_response_header_bytes\", len(raw)); lines=raw.split(b\"\\r\\n\\r\\n\",1)[0].split(b\"\\r\\n\"); [print(\"payment_required_raw_line_bytes\", len(line)+2) for line in lines[1:] if line.lower().startswith(b\"payment-required:\")]'"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "observation",
        "url": "https://news.apitoll.cloud/v1/cointelegraph/news",
        "observed_at": "2026-12-03",
        "note": "Unpaid HTTP/1.1 GET at 2026-12-03T00:05:35Z. status 402. payment_required_raw_line_bytes_including_crlf 8676. payment_required_value_bytes 8656. reconstructed_line_bytes 8676. total_response_header_bytes 8911. body_bytes 143. body_sha256 15f0d15a9f0b4b956bfd2e115fac9919bc4df56dc9f8cff6b37e4d922e899115."
      },
      {
        "kind": "doc",
        "url": "https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/http.md",
        "observed_at": "2026-12-03",
        "note": "Cited by actions/x402-cors-and-tags-check in this repository as the v2 HTTP transport spec."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-12-03",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2026-12-17"
  }
}
