Fail on HTTP Status 204 (No Content) Hello, I'm using Synadia Cloud which has a DELETE…
- User
Fail on HTTP Status 204 (No Content) Hello,
I'm using Synadia Cloud which has a
DELETEAPI that returns a response with no body.code$ restish synadia delete-nats-user --help Deletes a NATS user from an account ## Argument Schema: { user-id: (string) } ## Responses 204/400/401/403/404 Response has no bodyIn this case, it's expected to have an empty body. Nevertheless,
restishfails with the error:codeERROR: Parse response error ERROR: Caught error: EOFHere is the full log:
code - Assistant
I’ll trace the response decoding path, add a focused regression test for an empty 204 response (including the misleading gzip header), then run the relevant package tests and broader suite. I’m using the
rsh-testskill because this is a CLI behavior regression that needs concise coverage. - Assistant
rgisn’t installed in this workspace, so I’m switching to the localgrep/findequivalents. The worktree is clean, which gives me a safe baseline for a narrowly scoped edit. - Assistant
The failure occurs before the “empty body” check: the gzip decoder is constructed first, and an empty 204 payload makes that constructor return
EOF. I’m covering both response normalization and raw body output, since Restish can take either path depending on output mode/TTY. - Assistant
The regression tests now pass. The fix treats protocol-defined bodyless responses as bodyless before consulting
Content-Encoding, so a straygzipheader cannot turn a successful 204 into anEOF; this also applies consistently to raw output and HEAD/1xx/304 semantics. I’m running the full fast suite next. - Assistant
All fast tests pass. Because the change affects CLI response handling, I’m also running the repository’s integration-tagged suite as the final verification required for CLI behavior changes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.