[Diagnostic] NetBox MCP tools return JSON parsing error #120
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Diagnostic Report
Generated: 2026-01-23T20:48:00Z
Command Tested:
/cmdb-assistant:cmdb-deviceReporter: Claude Code via /debug-report
Summary
NetBox MCP tools (
dcim_list_devices,dcim_list_sites) are failing with:Key Findings
~/.config/claude/netbox.envHypothesis
Python
json.JSONDecodeError- MCP server receiving empty or non-JSON response. Possible causes:-k)netbox_client.pySuggested Investigation
mcp_server/netbox_client.py-_handle_response()methodconfig.pyWorkaround
Direct curl API calls worked - created devices, interfaces, IPs successfully.
Generated by /debug-report
Investigation Complete
Finding: Issue cannot be reproduced - NetBox MCP tools work correctly in current testing.
Root Cause Analysis:
The error
"Expecting value: line 8 column 1 (char 7)"indicates the MCP server received an empty or near-empty response during that session. This was likely a transient issue caused by:Fix Proposed: PR #121
Added diagnostic error handling to
netbox_client.pythat will:This won't prevent transient issues but will provide much better diagnostic information if they recur.
Next Steps:
/debug-reportif issue recurs to capture new diagnostic info