Elastica icon indicating copy to clipboard operation
Elastica copied to clipboard

No Exception for bulk query

Open kaiwa opened this issue 12 years ago • 5 comments


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."

kaiwa avatar Dec 03 '13 13:12 kaiwa

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 :-)

ruflin avatar Dec 03 '13 21:12 ruflin

No hurry, created it just to keep the issue tracker neat ;-)

kaiwa avatar Dec 03 '13 22:12 kaiwa

@kaiwa Didn't have time so far to check this in detail. Sorry. Any updates from your side?

ruflin avatar Mar 08 '14 11:03 ruflin

@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.

kaiwa avatar Dec 19 '14 11:12 kaiwa

Let me know if you have any update.

ruflin avatar Dec 21 '14 16:12 ruflin