Closed
Description
Description
I'm in need for an option to disable usage of debug buffer in CurlResponse
. CurlResponse::getInfo()
loads debug buffer to memory. Exceptions using HttpExceptionTrait
triggers this method and sometimes this triggers memory size error:
Sentry\Exception\FatalErrorException: Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 236911944 bytes)
#0 /vendor/symfony/http-client/Response/CurlResponse.php(167): null
It is hard to debug actual reason of this since this is happening from time to time and on production server only. I don't need this debug information at all. Just HTTP status code would be enough and some response content. How can I disable this?
$ composer show | grep http-client
psr/http-client 1.0.0 Common interface for HTTP clients
symfony/http-client v4.3.5 Symfony HttpClient component
symfony/http-client-contracts v1.1.7 Generic abstractions related to HTTP clients