From f59e09a8bf55500d4372cd380c7c2872936dddeb Mon Sep 17 00:00:00 2001 From: Jasper Zonneveld Date: Tue, 8 Oct 2019 13:58:09 +0200 Subject: [PATCH] Add note about Guzzle throwing exceptions --- clients/guzzle6-adapter.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/guzzle6-adapter.rst b/clients/guzzle6-adapter.rst index 569b044..0d5a3bc 100644 --- a/clients/guzzle6-adapter.rst +++ b/clients/guzzle6-adapter.rst @@ -41,6 +41,8 @@ to the client:: $guzzle = new GuzzleClient($config); // ... $adapter = new GuzzleAdapter($guzzle); + + If you pass a Guzzle instance to the adapter, make sure to configure Guzzle to not throw exceptions on HTTP error status codes, or this adapter will violate PSR-18. And use it to send synchronous requests::