Closed mikevrind closed 8 months ago
I need to use a host in which Elastic is available via a subfolder. The host is being carried on correctly until the Transport class. There it uses the Node object to build a connection URI but the path part of the configured host is not being used.
Transport
Node
path
private function setupConnectionUri(Node $node, RequestInterface $request): RequestInterface { $uri = $node->getUri(); return $request->withUri( $request->getUri() ->withHost($uri->getHost()) ->withPort($uri->getPort()) ->withScheme($uri->getScheme()) ); }
Also made a PR: https://github.com/elastic/elastic-transport-php/pull/20
Fixed in https://github.com/elastic/elastic-transport-php/pull/21
Summary of problem or feature request
I need to use a host in which Elastic is available via a subfolder. The host is being carried on correctly until the
Transport
class. There it uses theNode
object to build a connection URI but thepath
part of the configured host is not being used.Code snippet of problem
System details