Automation webhooks logs do not display actual response json

Automation webhooks logs do not display actual response json

The logs for Zoho Automation webhooks currently display response details that seem unrelated. Although the response code is accurate (e.g., Response Code: 404 for a non-existent item on the other end of the webhook), the response message consistently shows JSON data of the item, even though our server should provide relevant error JSON data.

While the displayed item JSON data can be beneficial for debugging, shouldn't the log response message ideally present the true response received from the remote server?

Sample response returned from remote server

  1. {
        "headers": {},
        "response": {
            "code": 404,
            "message": "Not Found"
        },
        "cookies": [],
        "filename": null,
        "http_response": {
            "data": null,
            "headers": null,
            "status": null
        },
        "body": {
            "code": "woocommerce_rest_product_invalid_id",
            "message": "Invalid Id",
            "data": {
                "status": 404
            }
        }
    }