-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Wrong parsing for publish_address #328
Comments
For what its worth, here the fix I applied : in Connection.php at, more or less, line 196
|
Hey @Artik-joachim, have you figured it out? Or are you still using that workaround from previous comment? |
Hi @yuniorsk, I am still using this workaround.
|
Ok, I reproduced it and you're right, it's not working correctly. It needs to be fixed, but there's another way how you can avoid this issue. If you are using ES with only single node can disable cluster autodetection using |
@Artik-joachim |
Is this what you are looking for ?
|
I tested both with and without cluster autodetection and everything worked OK. I am using latest 2.1.3 yii2-elasticsearch with latest yii2 2.0.47 and ES 8.6.1 on Win10. I added From looking at the code you may need to update your config like so (
|
@lubosdz have you set |
@yuniorsk I used config that you provided. There is no Edit 1: I see, you mean ES config.yml, sorry. Edit 2:
Edit 3: |
What steps will reproduce the problem?
Hi,
I have installed a single-node Elastic v7.15.1 on a physical machine. Lets say that its IP is 10.11.12.13.
This node is access remotely using the DNS : xxx.yyyyy.com
in
elastic.yml
I am not able to connect to it with Yii2-elasticsearch.
Using the URL
/_nodes/all
, I get apublish_address
of :xxx.yyyyy.com/10.11.12.13:9200
What's expected?
I was expecting to be able to connect to Elastic.
What do you get instead?
I get the following error
I don't know the specs of the field
publish_address
. But in the Yii2-elasctisearch code, the field should be an URL according to this piece of code inConnection.php
:I was expecting that the
publish_address
should be parsed before used by yii2-elasticsearch.Additional info
This can either be a bug of elastic or yii2-elastic.
Mark this issue as irrelevant if not a bug.
Thanks
The text was updated successfully, but these errors were encountered: