fix(netbox): add diagnostic logging for JSON parse errors #121

Merged
lmiranda merged 1 commits from fix/issue-120-json-parse-diagnostics into development 2026-01-23 21:07:52 +00:00
Owner

Summary

  • Add diagnostic error handling when JSON parsing fails in NetBox MCP client
  • Logs HTTP status code, content length, and content preview
  • Provides more informative error messages for debugging transient issues

Test plan

  • Verify existing functionality still works (sites/devices list)
  • Manual testing confirms improved error context

Fixes #120

🤖 Generated with Claude Code

## Summary - Add diagnostic error handling when JSON parsing fails in NetBox MCP client - Logs HTTP status code, content length, and content preview - Provides more informative error messages for debugging transient issues ## Test plan - [x] Verify existing functionality still works (sites/devices list) - [x] Manual testing confirms improved error context Fixes #120 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-23 21:07:13 +00:00
When NetBox MCP tools fail with JSON decode errors, the error message
now includes:
- HTTP status code
- Response content length
- Preview of actual content received (first 200 bytes)

This helps diagnose transient issues like network timeouts or
incomplete responses that result in cryptic "Expecting value" errors.

Fixes #120

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 50bfd20fd4 into development 2026-01-23 21:07:52 +00:00
lmiranda deleted branch fix/issue-120-json-parse-diagnostics 2026-01-23 21:07:52 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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