Error getKeyValue() on null when key is not created

Created on 4 October 2024, about 2 months ago

Problem/Motivation

An error occurs on the /admin/config/ai/settings page:
Error: Call to a member function getKeyValue() on null in Drupal\provider_openai\Plugin\AiProvider\OpenAiProvider->loadApiKey() (line 267 of modules/contrib/ai/modules/providers/provider_openai/src/Plugin/AiProvider/OpenAiProvider.php).

Steps to reproduce

The error arises when an key has not been created in /admin/config/system/keys, causing the AI Core module configuration settings page to fail.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

AI Core module

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia sumit-k

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

Comments & Activities

Production build 0.71.5 2024