all scenarios

Empty 200 response

empty-body · Transport & framing

Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/empty-body/mcp
On the wire — recorded from a real request
your clientchaos-mcp01initializePOST /s/empty-body/mcp200 OK · application/json · 4 ms! zero bytes of bodytools/list answers identically — every request does

Symptom

what you'll observe

Client hangs or errors with 'empty response' — status is 200 but there are zero bytes.

Cause

what this reproduces

Handler returns early (e.g. after a nil check) without ever writing a body.

Fix

how you'd resolve it

Always write a JSON-RPC result or error; never fall through silently.

Try it with curl
bash
curl -sS -X POST \
  https://chaos-mcp.thomascdnns.com/s/empty-body/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '
"jsonrpc""2.0"
"id"1
"method""initialize"
"params"
"protocolVersion""2024-11-05"
"capabilities"
"clientInfo""name""curl""version""1"

'