Show full error message in the logs

Created on 14 March 2025, about 1 month ago

Problem/Motivation

When certain exceptions are thrown, the error logs are typically truncated by Guzzle by default.
We should have special handling to ensure that that the full response may be viewed as desired, or at the very least be able to configure how much of the body to render.

Steps to reproduce

Make a request to an API with a fairly large error message. It ends up getting truncated, leaving users unable to read exactly why the response was blocked.

Proposed resolution

We should provide a more verbose error message in the logs.

See https://www.morpht.com/blog/debugging-guzzle-http-request-errors-drupal

Remaining tasks

Provide issue fork.

User interface changes

New "debug" option in the action, as well as a dedicated settings page to specify if the end user should be shown the request and response for debugging purposes.

API changes

N/A

Data model changes

N/A

Feature request
Status

Active

Version

3.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024