Claude Code errors / Config

Stop hook error

platform: Claude Code / category: Config

Cause

Claude Code's hook output validator treats zero bytes of output as a missing JSON object and falsely reports a stop-hook failure, even when the hook exits 0.

Fix

Confirm the hook works by checking its exit code manually - the error is cosmetic for hooks that produce no output and exit 0. As a workaround, emit an empty JSON object from the hook: echo '{}'. Track the upstream fix in the linked issue.

Source thread →

Part of the Automation Error Index — Claude Code errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem