Error: Call to a member function getDimension() on null in Drupal\search_api_ai\Plugin\search_api\data_type\Embeddings->getValue()

Created on 17 June 2024, 6 months ago
Updated 30 June 2024, 6 months ago

I created a Pinecone backend, then created an index against the backend, then run "Index now", it occred:
Error message
An error occurred while trying to index items. Check the logs for details.

Checking the recent logs, detailed log was as below:

Referrer	https://wushu.shisu.edu.cn/admin/config/search/search-api/add-server
Message	Warning: Undefined array key "dimension" in Drupal\search_api_ai\Backend\SearchApiAiBackendPluginBase->engineConfigurationForm() (line 99 of /var/www/html/wushu/web/modules/contrib/search_api_ai/src/Trait/SearchApiAiBackendTrait.php)
#0 /var/www/html/wushu/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 /var/www/html/wushu/web/modules/contrib/search_api_ai/src/Trait/SearchApiAiBackendTrait.php(99): _drupal_error_handler()
#2 /var/www/html/wushu/web/modules/contrib/search_api_ai/src/Backend/SearchApiAiBackendPluginBase.php(34): Drupal\search_api_ai\Backend\SearchApiAiBackendPluginBase->engineConfigurationForm()
#3 /var/www/html/wushu/web/modules/contrib/search_api_ai/modules/search_api_ai_milvus/src/Plugin/search_api/backend/SearchApiMilvusBackend.php(78): Drupal\search_api_ai\Backend\SearchApiAiBackendPluginBase->buildConfigurationForm()
#4 /var/www/html/wushu/web/modules/contrib/search_api/src/Form/ServerForm.php(222): Drupal\search_api_ai_milvus\Plugin\search_api\backend\SearchApiMilvusBackend->buildConfigurationForm()
#5 /var/www/html/wushu/web/modules/contrib/search_api/src/Form/ServerForm.php(89): Drupal\search_api\Form\ServerForm->buildBackendConfigForm()
#6 /var/www/html/wushu/web/core/lib/Drupal/Core/Entity/EntityForm.php(107): Drupal\search_api\Form\ServerForm->form()
#7 [internal function]: Drupal\Core\Entity\EntityForm->buildForm()
#8 /var/www/html/wushu/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array()
#9 /var/www/html/wushu/web/core/lib/Drupal/Core/Form/FormBuilder.php(375): Drupal\Core\Form\FormBuilder->retrieveForm()
#10 /var/www/html/wushu/web/core/lib/Drupal/Core/Form/FormBuilder.php(633): Drupal\Core\Form\FormBuilder->rebuildForm()
#11 /var/www/html/wushu/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#12 /var/www/html/wushu/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#13 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#14 /var/www/html/wushu/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#15 /var/www/html/wushu/web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /var/www/html/wushu/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#17 /var/www/html/wushu/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#18 /var/www/html/wushu/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#19 /var/www/html/wushu/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#20 /var/www/html/wushu/web/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php(39): Symfony\Component\HttpKernel\HttpKernel->handle()
#21 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle()
#22 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#23 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#24 /var/www/html/wushu/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#25 /var/www/html/wushu/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#26 /var/www/html/wushu/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#27 /var/www/html/wushu/web/modules/contrib/services/src/StackMiddleware/FormatSetter.php(45): Drupal\page_cache\StackMiddleware\PageCache->handle()
#28 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\services\StackMiddleware\FormatSetter->handle()
#29 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#30 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#31 /var/www/html/wushu/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#32 /var/www/html/wushu/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#33 /var/www/html/wushu/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#34 {main}
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇳China fishfree

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

Comments & Activities

Production build 0.71.5 2024