Error: Call to a member function getKeyValue() on null in Drupal\vdb_provider_pinecone\Plugin\VdbProvider\PineconeProvider->getClient()

Created on 14 October 2024, 4 months ago

Problem/Motivation

The following error is thrown on opening the search server page

The website encountered an unexpected error. Try again later.

Error: Call to a member function getKeyValue() on null in Drupal\vdb_provider_pinecone\Plugin\VdbProvider\PineconeProvider->getClient() (line 106 of modules/contrib/ai/modules/vdb_providers/vdb_provider_pinecone/src/Plugin/VdbProvider/PineconeProvider.php).
Drupal\vdb_provider_pinecone\Plugin\VdbProvider\PineconeProvider->buildSettingsForm(Array, Object, Array) (Line: 223)
Drupal\ai_search\Plugin\search_api\backend\SearchApiAiSearchBackend->buildConfigurationForm(Array, Object) (Line: 222)
Drupal\search_api\Form\ServerForm->buildBackendConfigForm(Array, Object, Object) (Line: 89)
Drupal\search_api\Form\ServerForm->form(Array, Object) (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('search_api_server_edit_form', Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
...........

Steps to reproduce

- Install AI search
- Install Pinecone provider
- Configure search server
- Open search server page
You will get the error.

(Please note that I have just updated the module in my system only. So I cannot be certain if the issue will be reproducible on fresh install.)

Proposed resolution

NA

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Active

Version

1.0

Component

AI Search

Created by

🇮🇳India Vivek Panicker Kolkata

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

Comments & Activities

Production build 0.71.5 2024