You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As title indicates, we have Elasticsearch cluster on Elastic Cloud with both AWS and Azure providers. When the cloud_id is passed into client creation as such Elasticsearch::Client.new(cloud_id: ...) this is the resulting error:
18: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport.rb:32:in `new'
17: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport.rb:32:in `new'
16: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/client.rb:136:in `initialize'
15: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/client.rb:136:in `new'
14: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/transport/base.rb:47:in `initialize'
13: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/transport/base.rb:136:in `__build_connections'
12: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/transport/base.rb:136:in `map'
11: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/transport/base.rb:144:in `block in __build_connections'
10: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/elasticsearch-transport-7.5.0/lib/elasticsearch/transport/transport/http/faraday.rb:41:in `__build_connection'
9: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-0.17.4/lib/faraday.rb:69:in `new'
8: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-0.17.4/lib/faraday.rb:69:in `new'
7: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-0.17.4/lib/faraday/connection.rb:80:in `initialize'
6: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-0.17.4/lib/faraday/connection.rb:315:in `url_prefix='
5: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-0.17.4/lib/faraday/utils.rb:275:in `URI'
4: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-0.17.4/lib/faraday/utils.rb:275:in `call'
3: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/2.7.0/uri/common.rb:737:in `URI'
2: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/2.7.0/uri/common.rb:234:in `parse'
1: from /Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/2.7.0/uri/rfc3986_parser.rb:73:in `parse'
/Users/yuchunlai/.rbenv/versions/2.7.1/lib/ruby/2.7.0/uri/rfc3986_parser.rb:67:in `split': bad URI(is not URI?): "https://************.southeastasia.azure.elastic-cloud.com:9243:9243" (URI::InvalidURIError)
Note the URL in the exception has a malformed part where the port number is appended twice. This issue does not arise when I attempt to create a client to connect to our Elastic Cloud AWS cluster.
The text was updated successfully, but these errors were encountered:
From my Gemfile.lock:
As title indicates, we have Elasticsearch cluster on Elastic Cloud with both AWS and Azure providers. When the
cloud_id
is passed into client creation as suchElasticsearch::Client.new(cloud_id: ...)
this is the resulting error:Note the URL in the exception has a malformed part where the port number is appended twice. This issue does not arise when I attempt to create a client to connect to our Elastic Cloud AWS cluster.
The text was updated successfully, but these errors were encountered: