If the rest response isn't valid json, show the raw response in debug messages

Created on 28 June 2023, over 1 year ago
Updated 21 May 2024, 6 months ago

Problem/Motivation

Some APIs don't send responses to rest requests in JSON. In my case, the service always sends errors in xml

When debug messages are enabled in this module, nothing is shown if the response isn't valid JSON.

Steps to reproduce

Send a request to an API that responds with XML with debugging turned on.

Proposed resolution

If the response isn't valid JSON we should print the raw response.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom kolin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024