No Exception for bulk query
This is a follow-up of fixed #501, separating a second issue from the original one.
A response containing an error was returned for a bulk query, but no exception was thrown:
object(Elastica\Bulk\ResponseSet)#114 (7) {
["_bulkResponses":protected]=>
array(0) {
}
["_position":protected]=>
int(0)
["_queryTime":protected]=>
NULL
["_responseString":protected]=>
string(0) ""
["_error":protected]=>
bool(false)
["_transferInfo":protected]=>
array(0) {
}
["_response":protected]=>
array(1) {
["message"]=>
string(51) "No handler found for uri [//_bulk] and method [PUT]"
}
}
@ruflin commented: "About the error / exception. I agree that there should be an exception. I think the problem is, that the error is in the "reponse" and not in the "bulkResponse". And if there is already and error in the response occurs is in this case not checked. I have to take a close look into this."
I will look into this in more details later. In case someone can pick that up sooner then I do, I would be more then happy :-)
No hurry, created it just to keep the issue tracker neat ;-)
@kaiwa Didn't have time so far to check this in detail. Sorry. Any updates from your side?
@ruflin OOps, sorry, seems I had overlooked the notification of your comment.
Unfortunately no updates from my side as I'm currently not working on the project.. may resume working on it soon.
Let me know if you have any update.