-
Notifications
You must be signed in to change notification settings - Fork 736
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
Invalid URI constructed [//_bulk] #501
Comments
Btw, ResponseSet for this is the following one. I'm not that familar with the internals of this lib, shouldn't it be an error response or even throw an exception (i've just noticed it is saying _error => false)?
|
I hope I could resolve the first issue with my last commit (see above) |
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. |
Yep that fixed it, thanks for your quick action. |
I will close this one for the sake of clarity and open another issue for the error / exception thing. |
Bulk.php
So getPath() returns /_bulk if Bulk::hasIndex() is false.
Later in Transport/Http.php:
This code will construct the uri with an additional slash if
$connection->getPath()
returns an empty string:$baseUri = http://localhost:9200//_bulk
Resulting in
No handler found for uri [//_bulk] and method [PUT]
The text was updated successfully, but these errors were encountered: