Replace unmaintained gmponos/guzzle_logger dependency

Created on 4 November 2024, 11 days ago

Problem/Motivation

When a ConnectException is thrown (and possibly other exceptions), an unhandled fatal error can be hit:

Call to undefined function GuzzleHttp\Promise\rejection_for() in ...

This is due to deprecated methods having been replaced since guzzlehttp/promises 1.5.3, but the gmponos/guzzle_logger package has not been updated to use the replacements. In general, that package does not appear to be maintained any more. There is a fork which has been updated since, which looks to be the best alternative to me: https://packagist.org/packages/covergenius/guzzle_logger

Steps to reproduce

Disconnect from the internet, and make a request from guzzle which will trigger the logging middleware.

Proposed resolution

Require a more up-to-date fork instead of gmponos/guzzle_logger. (An alternative solution could be to require guzzlehttp/promises <= 1.5.2 but that could introduce more problems for anyone needing to use a newer version of that!)

Remaining tasks

Provide change, test & review.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom james.williams

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