-
Notifications
You must be signed in to change notification settings - Fork 801
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
create_index! raises undefined method transport @ 7.2.0 #1004
Comments
I am experiencing the same bug. For me it will only happen when I do
|
I tried running the specs locally, in the test for the method that fails I get: client.transport
=>
#<Elasticsearch::Transport::Client:0x00007ffc805e69b8
... when I check in my Rails-code and run: Document.__elasticsearch__.client
=>
#<Elasticsearch::Transport::Client:0x00007f89166235d0
...
Document.__elasticsearch__.client.transport
=>
#<Elasticsearch::Transport::Transport::HTTP::Faraday:0x00007f89166221f8
... So it seems like the test-double for client is setup incorrectly. |
same three ✌️ . It is related to changes introduced in this PR #999
|
…sticsearch-rails-7.2.0" This reverts commit 14469cb, reversing changes made to 50f05ef. Fixes: elastic/elasticsearch-rails#1004
Thanks for reporting this, I'm going to look into it and release a fix as soon as possible. |
Same here: MyModel.__elasticsearch__.create_index!(force: true) results in:
the error stems from here: https://github.com/elastic/elasticsearch-rails/blob/master/elasticsearch-model/lib/elasticsearch/model/indexing.rb#L293 the nested transport looks like a typo: If I inspect it on the rails console I get: irb(main):014:0> MyModel.__elasticsearch__.client.transport.class
=> Elasticsearch::Transport::Transport::HTTP::Faraday
irb(main):015:0> MyModel.__elasticsearch__.client.transport.respond_to?(:transport)
=> false |
Fixed for me after upgrading |
Any news on this? I'm still having this issue with In the meantime, I was able to workaround it with this:
|
We realized that we cannot upgrade the client anymore after the branching and license change because we use other provider than Elasticsearch. I guess it is time to do the work to switch to Opensearch library. |
I'm having the same issue. |
Upgrading from 7.1.1 -> 7.2.0. The Changelog mentions "Updates transport references" which sounds related but I couldn't find any further explanation.
I'm hitting this in a spec, on the line:
The stack trace:
Not sure if I'm doing something wrong or there is a bug related to a recent transport change.
The text was updated successfully, but these errors were encountered: