Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When header are invalid, exception is not catched #399

lyrixx opened this issue Jul 9, 2019 · 0 comments


None yet
1 participant
Copy link

commented Jul 9, 2019


Here is the reproducer:

use Buzz\Client\MultiCurl;
use Nyholm\Psr7\Factory\Psr17Factory;
use Nyholm\Psr7\Request;

require __DIR__.'/vendor/autoload.php';

$client = new MultiCurl(new Psr17Factory(), [

$client->sendAsyncRequest($a = new Request('get', ''), ['callback' => function($request, $response, $exception) {
    dump([$request, $response, $exception]);

while (true) {
    echo '.';

I'm expecting that my callback will be called. But instead an exception is bubbled from $client->proceed()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.