guzzle-log-middleware icon indicating copy to clipboard operation
guzzle-log-middleware copied to clipboard

StringHandler not compatible with kevinrob/guzzle-cache-middleware

Open compwright opened this issue 3 years ago • 0 comments

The response bodies of cache hits are implemented as GuzzleHttp\Psr7\PumpStream, which is not seekable. This causes the following error:

StringHandler can not log request/response because the body is not seekable/readable.

compwright avatar Aug 23 '22 17:08 compwright