KamoCRM

Add XHR/Accept headers and String response parsing to GraphQL client

FixVOIPService
Shipped
26 ஏப்ரல், 2026 அன்று 3:03 AM UTC
Author
Kamo
Commit
aca597d

Same pattern as FreePBXTokenCache: add X-Requested-With + Accept: application/json to suppress FreePBX's HTML redirect responses, and switch all three call sites (queryOnce, restGet, restPost) from ResponseEntity<JsonNode> to ResponseEntity<String> with manual objectMapper.readTree() so non-JSON bodies produce a clear diagnostic error instead of an opaque HttpMessageConverter exception.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing