Error: Could not parse host using Standard Connector

Created on 30 June 2023, 12 months ago
Updated 1 July 2023, 12 months ago

Problem/Motivation

Cannot use with Standard auth connection

Steps to reproduce

Create a Server using Standard auth and save. Navigate to any search api admin page to create an index.

The website encountered an unexpected error. Please try again later.

OpenSearch\Common\Exceptions\RuntimeException: Could not parse host: in OpenSearch\ClientBuilder->buildConnectionsFromHosts() (line 762 of /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/ClientBuilder.php).
OpenSearch\ClientBuilder->buildTransport() (Line: 663)
OpenSearch\ClientBuilder->build() (Line: 102)
Drupal\search_api_opensearch\Plugin\OpenSearch\Connector\StandardConnector->getClient() (Line: 326)
Drupal\search_api_opensearch\Plugin\search_api\backend\OpenSearchBackend->getClient() (Line: 343)
Drupal\search_api_opensearch\Plugin\search_api\backend\OpenSearchBackend->getBackendClient() (Line: 411)
Drupal\search_api_opensearch\Plugin\search_api\backend\OpenSearchBackend->isAvailable() (Line: 198)
Drupal\search_api\Entity\Server->isAvailable() (Line: 206)
Drupal\search_api\IndexListBuilder->buildRow(Object) (Line: 238)
Drupal\search_api\IndexListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('search_api_index')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 583)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 166)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ’¬ Support request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sassafrass

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024