[Bug] NetBox MCP tools fail JSON parsing despite valid API response #130

Closed
opened 2026-01-23 22:29:59 +00:00 by lmiranda · 1 comment
Owner

Diagnostic Report

Generated: 2026-01-23
Plugin: cmdb-assistant (NetBox MCP)

Problem

All NetBox MCP tools fail with JSON parsing errors despite valid API responses.

Error: Invalid JSON response from NetBox: Expecting value: line 8 column 1 (char 7). Status code: 200

Test Results

  • MCP dcim_list_devices - FAIL (JSON parse error)
  • MCP dcim_list_sites - FAIL (JSON parse error)
  • Direct curl same endpoints - PASS (valid JSON)

Hypothesis

MCP server HTTP client may be:

  1. Including headers in response body
  2. Not handling chunked encoding
  3. Buffer/streaming issue

Additional Issue

Service API requires parent_object_type + parent_object_id instead of device field.

Workaround

Use direct curl calls instead of MCP tools.

## Diagnostic Report **Generated**: 2026-01-23 **Plugin**: cmdb-assistant (NetBox MCP) ## Problem All NetBox MCP tools fail with JSON parsing errors despite valid API responses. **Error**: Invalid JSON response from NetBox: Expecting value: line 8 column 1 (char 7). Status code: 200 ## Test Results - MCP dcim_list_devices - FAIL (JSON parse error) - MCP dcim_list_sites - FAIL (JSON parse error) - Direct curl same endpoints - PASS (valid JSON) ## Hypothesis MCP server HTTP client may be: 1. Including headers in response body 2. Not handling chunked encoding 3. Buffer/streaming issue ## Additional Issue Service API requires parent_object_type + parent_object_id instead of device field. ## Workaround Use direct curl calls instead of MCP tools.
lmiranda added the Component/BackendType/Bug labels 2026-01-23 22:29:59 +00:00
Author
Owner

Closing as duplicate of #126. See PR #132 for the fix.

Closing as duplicate of #126. See PR #132 for the fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#130