You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending request with large size body $I->expectARequestToRemoteServiceWithAResponse( Phiremock::on($this->requestProxy())->then( Respond::withStatusCode(200)->andBody($largeBody) ) );
I got this error : An error occurred creating the expectation: array ( 0 => 'Syntax error', ){"result" : "ERROR", "details" : ["Syntax error"]} vendor\mcustiel\phiremock-client\src\Phiremock.php:312 vendor\mcustiel\phiremock-client\src\Phiremock.php:114 vendor\mcustiel\phiremock-client\src\Phiremock.php:99
It turns out that is caused by new property MAXIMUM_BUFFER_SIZE in react/http/src/Server.php reactphp/http@49b4799
To resolve this we need to override MAXIMUM_BUFFER_SIZE by using RequestBodyBufferMiddleware().
I've resoled and will soon submit my PR for this
The text was updated successfully, but these errors were encountered:
Hi @mcustiel
When sending request with large size body
$I->expectARequestToRemoteServiceWithAResponse( Phiremock::on($this->requestProxy())->then( Respond::withStatusCode(200)->andBody($largeBody) ) );
I got this error :
An error occurred creating the expectation: array ( 0 => 'Syntax error', ){"result" : "ERROR", "details" : ["Syntax error"]} vendor\mcustiel\phiremock-client\src\Phiremock.php:312 vendor\mcustiel\phiremock-client\src\Phiremock.php:114 vendor\mcustiel\phiremock-client\src\Phiremock.php:99
It turns out that is caused by new property MAXIMUM_BUFFER_SIZE in react/http/src/Server.php
reactphp/http@49b4799
To resolve this we need to override MAXIMUM_BUFFER_SIZE by using RequestBodyBufferMiddleware().
I've resoled and will soon submit my PR for this
The text was updated successfully, but these errors were encountered: