We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The batchSend implementation of the Guzzle6Adapter never invoke the callback defined in the rejected option key when the request fails.
batchSend
Guzzle6Adapter
rejected
As a callback is set instead by the adapter, it is impossible to process errors when a call fails.
fulfilled
<?php $halClient = (new Client())->getHalClient()->withToken('<api_key>'); $requests['success'] = $halClient->createRequest('GET', '/v1/ping'); // 200 here $requests['error'] = $halClient->createRequest('GET', '/v1/pong'); // 404 here $halClient->batchSend($requests, [ 'fulfilled' => function($response, $id) { echo "$id : OK\n"; }, 'rejected' => function($exception, $id) { echo "$id : NOT OK\n"; } ]);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
The
batchSend
implementation of theGuzzle6Adapter
never invoke the callback defined in therejected
option key when the request fails.As a callback is set instead by the adapter, it is impossible to process errors when a call fails.
How to reproduce
fulfilled
callback ("success") is reachedThe text was updated successfully, but these errors were encountered: