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

FixVOIPService
Shipped
April 26, 2026 at 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?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing