-
Notifications
You must be signed in to change notification settings - Fork 643
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
Add baseUri path also when creating _bulk uri #3020
Conversation
Hi @pramodShehan5, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
This is the exact issue. |
CLA was signed. |
@@ -79,7 +79,7 @@ private[elasticsearch] final class ElasticsearchSimpleFlowStage[T, C]( | |||
log.debug("Posting data to Elasticsearch: {}", json) | |||
|
|||
if (json.nonEmpty) { | |||
val uri = baseUri.withPath(Path(endpoint)) | |||
val uri = baseUri.withPath(Path(baseUri.path.toString() + endpoint)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right, baseUri
should already be there as this attaches to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if baseUri
is https://test.com:9200/elasticsearch
, it is ignoring /elasticsearch
path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe what you are looking for is baseUri.withPath(baseUri.path / endpoint)
but can't verify that right now.
Superseded by |
References